common/templates/run-qmake.ant.xml.ftl
changeset 1047 ee03efed9e3c
parent 1025 a370015021c1
child 1048 f3a459ab2cfe
equal deleted inserted replaced
1046:871bdf0d7610 1047:ee03efed9e3c
    74 
    74 
    75         <parallel threadCount="${r'$'}{number.of.threads}">
    75         <parallel threadCount="${r'$'}{number.of.threads}">
    76     <#list data["//unit/@proFile/.."] as unit>
    76     <#list data["//unit/@proFile/.."] as unit>
    77             <sequential>
    77             <sequential>
    78 
    78 
    79           <#if (unit.@proFile!="hb.pro")>
    79           <#if (unit.@proFile!="projects.pro" && unit.@proFile!="hb.pro")>
    80 
    80 
    81                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    81                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    82                 <if>
    82                 <if>
    83                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    83                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    84                     <then>
    84                     <then>
   103 
   103 
   104             </sequential>
   104             </sequential>
   105     </#list>
   105     </#list>
   106         </parallel>
   106         </parallel>
   107 
   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>
   108     </target>
   134     </target>
   109     
   135     
   110 </project>
   136 </project>