common/templates/run-qmake.ant.xml.ftl
changeset 1023 ebfa9f019473
parent 1022 b89c1ad56824
child 1024 70ffcd2e5da9
equal deleted inserted replaced
1022:b89c1ad56824 1023:ebfa9f019473
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     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 
     6     <then>
     6 	        <sequential>
     7             <sequential>
     7 
     8     <#list data["//unit/@proFile/.."] as unit>
     8 	<#list data["//unit/@bldFile/.."] as unit>
     9           <#if (unit.@proFile=="projects.pro")>
     9           <#if (unit.@bldFile=="mw/qt/src/s60installs/deviceconfiguration")>
    10                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    10                 <echo>INFO: Building qmake for ${unit.@bldFile}</echo>
    11                 <if>
    11                 <if>
    12                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    12                     <available file="${r'$'}{build.drive}/sf/${unit.@bldFile}" type="dir"/>
    13                     <then>
    13                     <then>
    14                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    14                         <exec executable="cmd" dir="${r'$'}{build.drive}/sf/${unit.@bldFile}" failonerror="false">
    15                             <arg value="/C"/>
    15                             <arg value="/C"/>
    16                             <arg value="qmake"/>
    16                             <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
    17                             <!-- arg value="-listgen"/ -->
       
    18                             <#if unit.@qmakeArgs[0]??>
       
    19                             <arg line="${unit.@qmakeArgs?xml}"/>
       
    20                             <#else>
       
    21                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
       
    22                             </#if>
       
    23                             <arg value="${unit.@proFile?xml}"/>
       
    24                         </exec>
    17                         </exec>
    25                     </then>
    18                     </then>
    26                     <else>
    19                     <else>
    27                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    20                        <echo message="ERROR: Directory ${r'$'}{build.drive}/sf/${unit.@bldFile} doesn't exist."/>
       
    21                        <fail message="Unit mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
    28                     </else>
    22                     </else>
    29                 </if>          
    23                 </if>          
    30 	  </#if>
    24 	      </#if>
    31     </#list>
    25     </#list>			
    32             </sequential>
    26 			</sequential>
       
    27 	
    33             <sequential>
    28             <sequential>
    34     <#list data["//unit/@proFile/.."] as unit>
    29     <#list data["//unit/@proFile/.."] as unit>
    35           <#if (unit.@proFile=="hb.pro")>
    30           <#if (unit.@proFile=="hb.pro")>
    36                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    31                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    37                 <if>
    32                 <if>
    87 
    82 
    88             </sequential>
    83             </sequential>
    89     </#list>
    84     </#list>
    90         </parallel>
    85         </parallel>
    91 
    86 
    92     </then>
       
    93     </if>
       
    94     </target>
    87     </target>
    95     
    88     
    96 </project>
    89 </project>