buildframework/helium/tools/compile/qt/qt.ant.xml
branchwip
changeset 380 db59fc762214
parent 217 0f5e3a7fb6af
child 587 85df38eb4012
--- a/buildframework/helium/tools/compile/qt/qt.ant.xml	Tue Mar 16 17:16:51 2010 +0000
+++ b/buildframework/helium/tools/compile/qt/qt.ant.xml	Thu Mar 18 15:06:42 2010 +0000
@@ -20,37 +20,28 @@
 
 ============================================================================
 -->
+<!--* @package compile -->
 <project name="qt" xmlns:hlm="http://www.nokia.com/helium">
     <description>
     Qt build support.
     </description>
     
-    <property name="qt.dir" location="${build.drive}/qt"/>
-    <property name="qt.configure.log.name" value="${build.id}_configure-qt.log"/>
+    <!-- The location of the ant template to run qmake commands.
+    @type string
+    -->
     <property name="qt.qmake.ant.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.ant.xml.ftl" />
+    <!-- The location of the makefile template to run qmake commands.
+    @type string
+    -->
     <property name="qt.qmake.makefile.template" location="${helium.dir}/tools/compile/qt/templates/run-qmake.mk.ftl" />
+    <!-- The command lines argument passed to the configure tool.
+    @type string
+    -->
     <property name="qt.configure.args" value="-platform win32-mwc -xplatform symbian-abld -confirm-license"/>
-    <property name="qt.qmake.default.args" value="-platform symbian-abld -r"/>
-    
-    <!-- This target will run the configure tool under Qt (qt.dir) in order to create the
-        qmake tool and configure the Qt project for symbian building.
-        <deprecated>This target and its configuration are not maintained anymore, please consider building Qt using 
-         Symbian toolchain.</deprecated> 
-     -->
-    <target name="configure-qt">
-        <hlm:recordStartMacro name="${qt.configure.log.name}"/>
-        <exec dir="${qt.dir}" executable="${qt.dir}/configure.exe" failonerror="false">
-            <arg line="${qt.configure.args}"/>
-        </exec>
-        <hlm:recordStopMacro name="${qt.configure.log.name}"/>
-        <hlm:metadatarecord database="${metadata.dbfile}">
-            <hlm:textmetadatainput>
-                <fileset casesensitive="false" file="${build.log.dir}/${qt.configure.log.name}"/>
-                <metadatafilterset refid="filterset.qt.configure" />
-            </hlm:textmetadatainput>
-        </hlm:metadatarecord>
-        <hlm:generateBuildStatus file="${qt.configure.log.name}" />
-    </target>
+    <!-- Setting default arguments to qMake command line, if the qmakeArgs is defined from the system definition file then those arguments are discarded.
+    @type string
+    -->
+    <property name="qt.qmake.default.args" value="-r"/>
 
     <!--
         Executing qmake on all Qt components defined under the system definition file.
@@ -76,10 +67,11 @@
     
                 <!-- Running the qmake steps -->
                 <hlm:emakeMacro name="run-qmake-${sysdef.configuration}" makefile="${temp.build.dir}/run-qmake-${sysdef.configuration}.mk"
-                    target="all" dir="${build.drive}/" log="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"
+                    target="all" dir="${build.drive}/" log="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"
                     annodetail="basic,history,file,waiting"
-                    failonerror="false" />
-                <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
+                    failonerror="false" 
+                    phase="compile"/>
+                <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
             </then>
             <else>
                 <fmpp sourceFile="${qt.qmake.ant.template}"
@@ -93,32 +85,26 @@
     
                 <!-- Running the qmake steps -->
                 <ant antfile="${temp.build.dir}/run-qmake-${sysdef.configuration}.ant.xml" dir="${build.drive}/"
-                    output="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/>
-                <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
+                    output="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log"/>
+                <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
             </else>
         </if>
-        <copy file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt">
+        <copy file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" tofile="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt">
             <filterchain>
                 <linecontainsregexp>
                     <regexp pattern="Generating"/>
                 </linecontainsregexp>
             </filterchain>
         </copy>
-        <replaceregexp file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/>
-        <hlm:assertFileExists file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/>
+        <replaceregexp file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt" match="^\s*(?:\[exec\])?\s*Generating[^/\\]*." replace="" byline="true"/>
+        <hlm:assertFileExists file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.generated.txt"/>
         <hlm:metadatarecord database="${metadata.dbfile}">
             <hlm:textmetadatainput>
-                <fileset casesensitive="false" file="${build.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
-                <metadatafilterset>
-                    <metadatafilter priority="error" regex="^Error processing project file:" description="qt error" />
-                    <metadatafilter priority="error" regex="^'.*' is not recognized as an internal or external command," description="qt error" />
-                    <metadatafilter priority="error" regex="^Result: [1-9][0-9]*" description="qt error" />
-                    <metadatafilter priority="warning" regex="^WARNING:" description="qt error" />
-                    <metadatafilter priority="info" regex="INFO:" description="qt error" />
-                </metadatafilterset>
+                <fileset casesensitive="false" file="${compile.log.dir}/${build.id}_${sysdef.configuration}.qmake.log" />
+                <metadatafilterset refid="filterset.qmake" />
             </hlm:textmetadatainput>
         </hlm:metadatarecord>
         <hlm:signalMacro logfile="${build.id}_${sysdef.configuration}.qmake.log" 
-            signal.input="signalRunQMakeInput" />
+            signal.input="signalRunQMakeInput" phase="compile"/>
     </target>
 </project>