common/templates/run-qmake.ant.xml.ftl
changeset 1018 334e3f2f79e5
parent 1016 f4a77e1d1446
child 1022 b89c1ad56824
equal deleted inserted replaced
1017:9bb7a955c2b3 1018:334e3f2f79e5
     2 <project name="run-qmake-${ant['sysdef.configuration']}" default="all">
     2 <project name="run-qmake-${ant['sysdef.configuration']}" default="all">
     3 
     3 
     4     <target name="all">
     4     <target name="all">
     5     <if><available file="${r'$'}{build.drive}/epoc32/tools/qt/qmake.exe" type="file"/>
     5     <if><available file="${r'$'}{build.drive}/epoc32/tools/qt/qmake.exe" type="file"/>
     6     <then>
     6     <then>
       
     7             <sequential>
       
     8     <#list data["//unit/@proFile/.."] as unit>
       
     9           <#if (unit.@proFile=="hb.pro")>
       
    10                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    11                 <if>
       
    12                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    13                     <then>
       
    14                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    15                             <arg value="/C"/>
       
    16                             <arg value="python"/>
       
    17                             <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/>
       
    18                         </exec>
       
    19                     </then>
       
    20                     <else>
       
    21                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    22                     </else>
       
    23                 </if>
       
    24                 <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    25 
       
    26                 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb_install.prf" todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
       
    27                 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb.prf"         todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
       
    28 	  </#if>
       
    29     </#list>
       
    30 
       
    31             </sequential>
     7 
    32 
     8         <parallel threadCount="${r'$'}{number.of.threads}">
    33         <parallel threadCount="${r'$'}{number.of.threads}">
     9     <#list data["//unit/@proFile/.."] as unit>
    34     <#list data["//unit/@proFile/.."] as unit>
    10             <sequential>
    35             <sequential>
    11 
    36 
    28                         </exec>
    53                         </exec>
    29                     </then>
    54                     </then>
    30                     <else>
    55                     <else>
    31                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    56                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    32                     </else>
    57                     </else>
    33                 </if>
    58                 </if>          
    34           <#else>
       
    35 
       
    36                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    37                 <if>
       
    38                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    39                     <then>
       
    40                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    41                             <arg value="/C"/>
       
    42                             <arg value="python"/>
       
    43                             <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/>
       
    44                         </exec>
       
    45                     </then>
       
    46                     <else>
       
    47                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    48                     </else>
       
    49                 </if>
       
    50           
       
    51 	  </#if>
    59 	  </#if>
    52 
    60 
    53 
    61 
    54             </sequential>
    62             </sequential>
    55     </#list>
    63     </#list>