common/templates/run-qmake.ant.xml.ftl
changeset 1028 11f25704ec27
parent 1025 a370015021c1
child 1047 ee03efed9e3c
equal deleted inserted replaced
1012:d1cef5ea6d99 1028:11f25704ec27
     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/qmake.bat" type="file"/>
     5 
     6     <then>
     6 	        <sequential>
       
     7 
       
     8 	<#list data["//unit/@bldFile/.."] as unit>
       
     9           <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
       
    10                 <echo>INFO: Building and configuring qmake for ${unit.@bldFile}</echo>
       
    11                 <if>
       
    12                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    13                     <then>
       
    14                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    15                             <arg value="/C"/>
       
    16                             <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qmake.log"/>
       
    17                         </exec>
       
    18                     </then>
       
    19                     <else>
       
    20                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    21                        <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
       
    22                     </else>
       
    23                 </if>          
       
    24 	      </#if>
       
    25     </#list>			
       
    26 			</sequential>
       
    27 
       
    28 	        <sequential>
       
    29 
       
    30 	<#list data["//unit/@bldFile/.."] as unit>
       
    31           <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
       
    32                 <echo>INFO: Configuring qtextensions for ${unit.@bldFile}</echo>
       
    33                 <if>
       
    34                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    35                     <then>
       
    36                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    37                             <arg value="/C"/>
       
    38                             <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtextensions.log"/>
       
    39                         </exec>
       
    40                     </then>
       
    41                     <else>
       
    42                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    43                     </else>
       
    44                 </if>          
       
    45 	      </#if>
       
    46     </#list>			
       
    47 			</sequential>
       
    48 			
       
    49             <sequential>
       
    50     <#list data["//unit/@proFile/.."] as unit>
       
    51           <#if (unit.@proFile=="hb.pro")>
       
    52                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    53                 <if>
       
    54                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    55                     <then>
       
    56                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    57                             <arg value="/C"/>
       
    58                             <arg value="python"/>
       
    59                             <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/>
       
    60                         </exec>
       
    61                     </then>
       
    62                     <else>
       
    63                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    64                     </else>
       
    65                 </if>
       
    66                 <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    67 
       
    68                 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb_install.prf" todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
       
    69                 <copy file="${r'$'}{build.drive}/${unit.@bldFile}/hb.prf"         todir="${r'$'}{build.drive}/epoc32/tools/qt/mkspecs/features" overwrite="true"/>
       
    70 	  </#if>
       
    71     </#list>
       
    72 
       
    73             </sequential>
     7 
    74 
     8         <parallel threadCount="${r'$'}{number.of.threads}">
    75         <parallel threadCount="${r'$'}{number.of.threads}">
     9     <#list data["//unit/@proFile/.."] as unit>
    76     <#list data["//unit/@proFile/.."] as unit>
    10             <sequential>
    77             <sequential>
    11 
    78 
    28                         </exec>
    95                         </exec>
    29                     </then>
    96                     </then>
    30                     <else>
    97                     <else>
    31                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    98                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
    32                     </else>
    99                     </else>
    33                 </if>
   100                 </if>          
    34           <#else>
       
    35 
       
    36                 <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
       
    37                 <if>
       
    38                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
       
    39                     <then>
       
    40                         <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false">
       
    41                             <arg value="/C"/>
       
    42                             <arg value="python"/>
       
    43                             <arg line ="configure.py --qmake-bin=\epoc32\tools\qmake.bat --qmake-spec=symbian-sbsv2 --platform=symbian --qmake-options=MMP_RULES+=EXPORTUNFROZEN"/>
       
    44                         </exec>
       
    45                     </then>
       
    46                     <else>
       
    47                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
       
    48                     </else>
       
    49                 </if>
       
    50           
       
    51 	  </#if>
   101 	  </#if>
    52 
   102 
    53 
   103 
    54             </sequential>
   104             </sequential>
    55     </#list>
   105     </#list>
    56         </parallel>
   106         </parallel>
    57 
   107 
    58     </then>
       
    59     </if>
       
    60     </target>
   108     </target>
    61     
   109     
    62 </project>
   110 </project>