common/templates/run-qmake.ant.xml.ftl
changeset 1048 f3a459ab2cfe
parent 1047 ee03efed9e3c
child 1049 106264ed9735
equal deleted inserted replaced
1047:ee03efed9e3c 1048:f3a459ab2cfe
     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 
     5 
       
     6     <if><not><available file="${r'$'}{build.drive}/epoc32/tools/qt/qmake.exe" type="file"/></not>
       
     7     <then>
     6 	        <sequential>
     8 	        <sequential>
     7 
     9 
     8 	<#list data["//unit/@bldFile/.."] as unit>
    10 	<#list data["//unit/@bldFile/.."] as unit>
     9           <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
    11           <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
    10                 <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    12                 <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    22                     </else>
    24                     </else>
    23                 </if>          
    25                 </if>          
    24 	      </#if>
    26 	      </#if>
    25     </#list>			
    27     </#list>			
    26 			</sequential>
    28 			</sequential>
    27 
    29     </then>
       
    30     </if>
    28 	        <sequential>
    31 	        <sequential>
    29 
    32 
    30 	<#list data["//unit/@bldFile/.."] as unit>
    33 	<#list data["//unit/@bldFile/.."] as unit>
    31           <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
    34           <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
    32                 <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    35                 <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    74 
    77 
    75         <parallel threadCount="${r'$'}{number.of.threads}">
    78         <parallel threadCount="${r'$'}{number.of.threads}">
    76     <#list data["//unit/@proFile/.."] as unit>
    79     <#list data["//unit/@proFile/.."] as unit>
    77             <sequential>
    80             <sequential>
    78 
    81 
    79           <#if (unit.@proFile!="projects.pro" && unit.@proFile!="hb.pro")>
    82           <#if (unit.@proFile!="hb.pro")>
    80 
    83 
    81                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    84                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    82                 <if>
    85                 <if>
    83                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    86                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    84                     <then>
    87                     <then>
   102 
   105 
   103 
   106 
   104             </sequential>
   107             </sequential>
   105     </#list>
   108     </#list>
   106         </parallel>
   109         </parallel>
   107 
       
   108             <sequential>
       
   109     <#list data["//unit/@proFile/.."] as unit>
       
   110           <#if (unit.@proFile="projects.pro")>
       
   111                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
       
   112                 <if>
       
   113                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
   114                     <then>
       
   115                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
   116                             <arg value="/C"/>
       
   117                             <arg value="qmake"/>
       
   118                             <!-- arg value="-listgen"/ -->
       
   119                             <#if unit.@qmakeArgs[0]??>
       
   120                             <arg line="${unit.@qmakeArgs?xml}"/>
       
   121                             <#else>
       
   122                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
       
   123                             </#if>
       
   124                             <arg value="${unit.@proFile?xml}"/>
       
   125                         </exec>
       
   126                     </then>
       
   127                     <else>
       
   128                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
   129                     </else>
       
   130                 </if>          
       
   131 	  </#if>
       
   132     </#list>
       
   133             </sequential>
       
   134     </target>
   110     </target>
   135     
   111     
   136 </project>
   112 </project>