common/templates/run-qmake.ant.xml.ftl
changeset 1201 7ff3bbb2e9d9
parent 1200 17aa569095fc
child 1202 8e3d3bbaed03
equal deleted inserted replaced
1200:17aa569095fc 1201:7ff3bbb2e9d9
     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 = '/sf/mw/qt/src/s60installs/deviceconfiguration']"] as unit>
    13       <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
       
    14                     <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    13                     <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
    15                     <if>
    14                     <if>
    16                         <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    15                         <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
    17                         <then>
    16                         <then>
    18                             <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    17                             <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false">
    19                                 <arg value="/C"/>
    18                                 <arg value="/C"/>
    20                                 <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
    19                                 <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
    21                             </exec>
    20                             </exec>
    22                         </then>
    21                         </then>
    23                         <else>
    22                         <else>
    24                            <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    23                            <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!"/>
    24                            <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
    26                         </else>
    25                         </else>
    27                     </if>          
    26                     </if>          
    28       </#if>
       
    29   </#list>
    27   </#list>
    30                 </sequential>
    28                 </sequential>
    31             </then>
    29             </then>
    32         </if>
    30         </if>
    33 
    31 
    34         <sequential>
    32         <sequential>
    35   <#list data["//unit/@bldFile/.."] as unit>
    33   <#list data["//unit[@bldFile = '/sf/mw/qtextensions/group']"] as unit>
    36       <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
       
    37             <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    34             <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
    38             <if>
    35             <if>
    39                 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    36                 <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
    40                 <then>
    37                 <then>
    41                     <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    38                     <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false">
    42                         <arg value="/C"/>
    39                         <arg value="/C"/>
    43                         <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
    40                         <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
    44                     </exec>
    41                     </exec>
    45                 </then>
    42                 </then>
    46                 <else>
    43                 <else>
    47                     <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    44                     <echo message="ERROR: Directory ${r'$'}{build.drive}${unit.@bldFile} doesn't exist."/>
    48                 </else>
    45                 </else>
    49             </if>          
    46             </if>          
    50       </#if>
       
    51   </#list>
    47   </#list>
    52         </sequential>
    48         </sequential>
    53 
    49 
    54         <sequential>
    50         <sequential>
    55   <#list data["//unit/@proFile/.."] as unit>
    51   <#list data["//unit[@proFile = 'hb.pro']"] as unit>
    56       <#if (unit.@proFile=="hb.pro")>
       
    57             <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    52             <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
    58             <if>
    53             <if>
    59                 <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    54                 <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
    60                 <then>
    55                 <then>
    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">
    56                     <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
    62                         <arg value="/C"/>
    57                         <arg value="/C"/>
    63                         <arg value="python"/>
    58                         <arg value="python"/>
    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"/>
    59                         <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>
    60                     </exec>
    66                         
    61                         
    67                     <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
    62                     <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>
    63                     <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">
    64                     <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"/>
    65                         <arg value="/C"/>
    71                         <arg value="make install"/>
    66                         <arg value="make install"/>
    72                     </exec>
    67                     </exec>
    73                 </then>
    68                 </then>
    74                 <else>
    69                 <else>
    75                     <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    70                     <echo message="ERROR: Directory ${r'$'}{build.drive}${unit.@bldFile} doesn't exist."/>
    76                 </else>
    71                 </else>
    77             </if>
    72             </if>
    78       </#if>
       
    79   </#list>
    73   </#list>
    80 
       
    81         </sequential>
    74         </sequential>
    82 
    75 
    83         <parallel threadCount="${r'$'}{number.of.threads}">
    76         <parallel threadCount="${r'$'}{number.of.threads}">
    84   <#list data["//unit/@proFile/.."] as unit>
    77   <#list data["//unit[@proFile != 'hb.pro']"] as unit>
    85             <sequential>
    78             <sequential>
    86       <#if (unit.@proFile!="hb.pro")>
       
    87                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    79                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
    88                 <if>
    80                 <if>
    89                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
    81                     <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
    90                     <then>
    82                     <then>
    91                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
    83                         <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false">
    92                             <arg value="/C"/>
    84                             <arg value="/C"/>
    93                             <arg value="qmake"/>
    85                             <arg value="qmake"/>
    94                             <!-- arg value="-listgen"/ -->
    86                             <!-- arg value="-listgen"/ -->
    95           <#if unit.@qmakeArgs[0]??>
    87       <#escape x as x?xml>
    96                             <arg line="${unit.@qmakeArgs?xml}"/>
    88                             <arg line="${unit.@qmakeArgs[0]!ant['qt.qmake.default.args']}"/>
    97           <#else>
    89       </#escape>
    98                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
       
    99           </#if>
       
   100                             <arg value="${unit.@proFile?xml}"/>
    90                             <arg value="${unit.@proFile?xml}"/>
   101                         </exec>
    91                         </exec>
   102                     </then>
    92                     </then>
   103                     <else>
    93                     <else>
   104                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    94                        <echo message="ERROR: Directory ${r'$'}{build.drive}${unit.@bldFile} doesn't exist."/>
   105                     </else>
    95                     </else>
   106                 </if>          
    96                 </if>          
   107       </#if>
       
   108             </sequential>
    97             </sequential>
   109   </#list>
    98   </#list>
   110         </parallel>
    99         </parallel>
   111     </target>
   100     </target>
   112     
   101