common/templates/run-qmake.ant.xml.ftl
changeset 1200 17aa569095fc
parent 1186 8174fb206005
child 1201 7ff3bbb2e9d9
equal deleted inserted replaced
1193:70d88996e8cd 1200:17aa569095fc
     4     <target name="all">
     4     <target name="all">
     5 
     5 
     6     <!-- Qmake needs to have been built in this environment, to generate bld.infs to built Qt itself.  
     6     <!-- Qmake needs to have been built in this environment, to generate bld.infs to built Qt itself.  
     7          Qmake.exe only exists in the source tree if its been built  -->
     7          Qmake.exe only exists in the source tree if its been built  -->
     8 
     8 
     9     <if><not><available file="${r'$'}{build.drive}/sf/mw/qt/bin/qmake.exe" type="file"/></not>
     9         <if><not><available file="${r'$'}{build.drive}/sf/mw/qt/bin/qmake.exe" type="file"/></not>
    10     <then>
    10             <then>
    11 	        <sequential>
    11                 <sequential>
    12 	<#list data["//unit/@bldFile/.."] as unit>
    12   <#list data["//unit/@bldFile/.."] as unit>
    13           <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
    13       <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
    14                 <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    14                     <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    15                 <if>
    15                     <if>
    16                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    16                         <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    17                     <then>
    17                         <then>
    18                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    18                             <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    19                             <arg value="/C"/>
    19                                 <arg value="/C"/>
    20                             <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
    20                                 <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
    21                         </exec>
    21                             </exec>
    22                     </then>
    22                         </then>
    23                     <else>
    23                         <else>
    24                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    24                            <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    25                        <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
    25                            <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
    26                     </else>
    26                         </else>
    27                 </if>          
    27                     </if>          
    28 	      </#if>
    28       </#if>
    29     </#list>			
    29   </#list>
    30 			</sequential>
    30                 </sequential>
    31     </then>
    31             </then>
    32     </if>
    32         </if>
    33 	        <sequential>
       
    34 
    33 
    35 	<#list data["//unit/@bldFile/.."] as unit>
    34         <sequential>
    36           <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
    35   <#list data["//unit/@bldFile/.."] as unit>
    37                 <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    36       <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
    38                 <if>
    37             <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    39                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    38             <if>
    40                     <then>
    39                 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    41                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    40                 <then>
    42                             <arg value="/C"/>
    41                     <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    43                             <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
    42                         <arg value="/C"/>
    44                         </exec>
    43                         <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
    45                     </then>
    44                     </exec>
    46                     <else>
    45                 </then>
    47                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    46                 <else>
    48                     </else>
    47                     <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    49                 </if>          
    48                 </else>
    50 	      </#if>
    49             </if>          
    51     </#list>			
    50       </#if>
    52 			</sequential>
    51   </#list>
    53 			
    52         </sequential>
    54             <sequential>
    53 
    55     <#list data["//unit/@proFile/.."] as unit>
    54         <sequential>
    56           <#if (unit.@proFile=="hb.pro")>
    55   <#list data["//unit/@proFile/.."] as unit>
    57                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    56       <#if (unit.@proFile=="hb.pro")>
    58                 <if>
    57             <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    59                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    58             <if>
    60                     <then>
    59                 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    61                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
    60                 <then>
    62                             <arg value="/C"/>
    61                     <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
    63                             <arg value="python"/>
    62                         <arg value="/C"/>
    64                             <arg line ="configure.py --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN CONFIG+=sgimagelite_support DEFINES+=HB_EFFECTS_OPENVG DEFINES+=HB_FILTER_EFFECTS"/>
    63                         <arg value="python"/>
    65                         </exec>
    64                         <arg line ="configure.py --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN CONFIG+=sgimagelite_support DEFINES+=HB_EFFECTS_OPENVG DEFINES+=HB_FILTER_EFFECTS"/>
       
    65                     </exec>
    66                         
    66                         
    67                         <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
    67                     <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
    68                         <echo>INFO: Running Orbit theme installer, make install step</echo>
    68                     <echo>INFO: Running Orbit theme installer, make install step</echo>
    69                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
    69                     <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
    70                             <arg value="/C"/>
    70                         <arg value="/C"/>
    71                             <arg value="make install"/>
    71                         <arg value="make install"/>
    72                         </exec>
    72                     </exec>
    73                     </then>
    73                 </then>
    74                     <else>
    74                 <else>
    75                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    75                     <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    76                     </else>
    76                 </else>
    77                 </if>
    77             </if>
    78 	  </#if>
    78       </#if>
    79     </#list>
    79   </#list>
    80 
    80 
    81             </sequential>
    81         </sequential>
    82 
    82 
    83         <parallel threadCount="${r'$'}{number.of.threads}">
    83         <parallel threadCount="${r'$'}{number.of.threads}">
    84     <#list data["//unit/@proFile/.."] as unit>
    84   <#list data["//unit/@proFile/.."] as unit>
    85             <sequential>
    85             <sequential>
    86 
    86       <#if (unit.@proFile!="hb.pro")>
    87           <#if (unit.@proFile!="hb.pro")>
       
    88 
       
    89                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    87                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    90                 <if>
    88                 <if>
    91                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    89                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    92                     <then>
    90                     <then>
    93                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    91                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    94                             <arg value="/C"/>
    92                             <arg value="/C"/>
    95                             <arg value="qmake"/>
    93                             <arg value="qmake"/>
    96                             <!-- arg value="-listgen"/ -->
    94                             <!-- arg value="-listgen"/ -->
    97                             <#if unit.@qmakeArgs[0]??>
    95           <#if unit.@qmakeArgs[0]??>
    98                             <arg line="${unit.@qmakeArgs?xml}"/>
    96                             <arg line="${unit.@qmakeArgs?xml}"/>
    99                             <#else>
    97           <#else>
   100                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
    98                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
   101                             </#if>
    99           </#if>
   102                             <arg value="${unit.@proFile?xml}"/>
   100                             <arg value="${unit.@proFile?xml}"/>
   103                         </exec>
   101                         </exec>
   104                     </then>
   102                     </then>
   105                     <else>
   103                     <else>
   106                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
   104                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
   107                     </else>
   105                     </else>
   108                 </if>          
   106                 </if>          
   109 	  </#if>
   107       </#if>
   110 
       
   111 
       
   112             </sequential>
   108             </sequential>
   113     </#list>
   109   </#list>
   114         </parallel>
   110         </parallel>
   115     </target>
   111     </target>
   116     
   112     
   117 </project>
   113 </project>