buildframework/helium/tools/compile/qt/qt.ant.xml
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 217 0f5e3a7fb6af
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
    23 <project name="qt" xmlns:hlm="http://www.nokia.com/helium">
    23 <project name="qt" xmlns:hlm="http://www.nokia.com/helium">
    24     <description>
    24     <description>
    25     Qt build support.
    25     Qt build support.
    26     </description>
    26     </description>
    27     
    27     
    28     <property name="qt.dir" location="${build.drive}/qt"/>
       
    29     <property name="qt.configure.log.name" value="${build.id}_configure-qt.log"/>
       
    30     <property name="qt.qmake.ant.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.ant.xml.ftl" />
    28     <property name="qt.qmake.ant.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.ant.xml.ftl" />
    31     <property name="qt.qmake.makefile.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl" />
    29     <property name="qt.qmake.makefile.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl" />
    32     <property name="qt.configure.args" value="-platform win32-mwc -xplatform symbian-abld -confirm-license"/>
    30     <property name="qt.configure.args" value="-platform win32-mwc -xplatform symbian-abld -confirm-license"/>
    33     <property name="qt.qmake.default.args" value="-platform symbian-abld -r"/>
    31     <property name="qt.qmake.default.args" value="-r"/>
    34     
       
    35     <!-- This target will run the configure tool under Qt (qt.dir) in order to create the
       
    36         qmake tool and configure the Qt project for symbian building.
       
    37         <deprecated>This target and its configuration are not maintained anymore, please consider building Qt using 
       
    38          Symbian toolchain.</deprecated> 
       
    39      -->
       
    40     <target name="configure-qt">
       
    41         <hlm:recordStartMacro name="${qt.configure.log.name}"/>
       
    42         <exec dir="${qt.dir}" executable="${qt.dir}/configure.exe" failonerror="false">
       
    43             <arg line="${qt.configure.args}"/>
       
    44         </exec>
       
    45         <hlm:recordStopMacro name="${qt.configure.log.name}"/>
       
    46         <hlm:metadatarecord database="${metadata.dbfile}">
       
    47             <hlm:textmetadatainput>
       
    48                 <fileset casesensitive="false" file="${build.log.dir}/${qt.configure.log.name}"/>
       
    49                 <metadatafilterset refid="filterset.qt.configure" />
       
    50             </hlm:textmetadatainput>
       
    51         </hlm:metadatarecord>
       
    52         <hlm:generateBuildStatus file="${qt.configure.log.name}" />
       
    53     </target>
       
    54 
    32 
    55     <!--
    33     <!--
    56         Executing qmake on all Qt components defined under the system definition file.
    34         Executing qmake on all Qt components defined under the system definition file.
    57         It must use schema v1.5.0+, and Qt unit must define a proFile attibute.   
    35         It must use schema v1.5.0+, and Qt unit must define a proFile attibute.   
    58      -->
    36      -->
    74                 </fmpp>
    52                 </fmpp>
    75                 <hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" />
    53                 <hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk" />
    76     
    54     
    77                 <!-- Running the qmake steps -->
    55                 <!-- Running the qmake steps -->
    78                 <hlm:emakeMacro name="run-qmake-${sysdef.configuration}" makefile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk"
    56                 <hlm:emakeMacro name="run-qmake-${sysdef.configuration}" makefile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk"
    79                     target="all" dir="${build.drive}/" log="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"
    57                     target="all" dir="${build.drive}/" log="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"
    80                     annodetail="basic,history,file,waiting"
    58                     annodetail="basic,history,file,waiting"
    81                     failonerror="false" />
    59                     failonerror="false" 
    82                 <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
    60                     phase="compile"/>
       
    61                 <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
    83             </then>
    62             </then>
    84             <else>
    63             <else>
    85                 <fmpp sourceFile="${qt.qmake.ant.template}"
    64                 <fmpp sourceFile="${qt.qmake.ant.template}"
    86                     outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml">
    65                     outputFile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml">
    87                     <data expandProperties="yes">
    66                     <data expandProperties="yes">
    91                 </fmpp>
    70                 </fmpp>
    92                 <hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" />
    71                 <hlm:assertFileExists file="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" />
    93     
    72     
    94                 <!-- Running the qmake steps -->
    73                 <!-- Running the qmake steps -->
    95                 <ant antfile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" dir="${build.drive}/"
    74                 <ant antfile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" dir="${build.drive}/"
    96                     output="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/>
    75                     output="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/>
    97                 <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
    76                 <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
    98             </else>
    77             </else>
    99         </if>
    78         </if>
   100         <copy file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt">
    79         <copy file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt">
   101             <filterchain>
    80             <filterchain>
   102                 <linecontainsregexp>
    81                 <linecontainsregexp>
   103                     <regexp pattern="Generating"/>
    82                     <regexp pattern="Generating"/>
   104                 </linecontainsregexp>
    83                 </linecontainsregexp>
   105             </filterchain>
    84             </filterchain>
   106         </copy>
    85         </copy>
   107         <replaceregexp file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/>
    86         <replaceregexp file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/>
   108         <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/>
    87         <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/>
   109         <hlm:metadatarecord database="${metadata.dbfile}">
    88         <hlm:metadatarecord database="${metadata.dbfile}">
   110             <hlm:textmetadatainput>
    89             <hlm:textmetadatainput>
   111                 <fileset casesensitive="false" file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
    90                 <fileset casesensitive="false" file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
   112                 <metadatafilterset>
    91                 <metadatafilterset refid="filterset.qmake" />
   113                     <metadatafilter priority="error" regex="^Error processing project file:" description="qt error" />
       
   114                     <metadatafilter priority="error" regex="^'.*' is not recognized as an internal or external command," description="qt error" />
       
   115                     <metadatafilter priority="error" regex="^Result: [1-9][0-9]*" description="qt error" />
       
   116                     <metadatafilter priority="warning" regex="^WARNING:" description="qt error" />
       
   117                     <metadatafilter priority="info" regex="INFO:" description="qt error" />
       
   118                 </metadatafilterset>
       
   119             </hlm:textmetadatainput>
    92             </hlm:textmetadatainput>
   120         </hlm:metadatarecord>
    93         </hlm:metadatarecord>
   121         <hlm:signalMacro logfile="${build.id}_${sysdef.configuration}.qmake.log" 
    94         <hlm:signalMacro logfile="${build.id}_${sysdef.configuration}.qmake.log" 
   122             signal.input="signalRunQMakeInput" />
    95             signal.input="signalRunQMakeInput" phase="compile"/>
   123     </target>
    96     </target>
   124 </project>
    97 </project>