Explicitly build tools2 in qtmobility, to get the header file generation etc. PDK_3.0.2
authorWilliam Roberts <williamr@symbian.org>
Tue, 14 Sep 2010 17:06:31 +0100
changeset 1224 468b74292f68
parent 1223 9a6d81b932b1
child 1225 fa8b83950a31
Explicitly build tools2 in qtmobility, to get the header file generation etc.
common/templates/run-qmake.ant.xml.ftl
--- a/common/templates/run-qmake.ant.xml.ftl	Tue Sep 14 16:04:20 2010 +0100
+++ b/common/templates/run-qmake.ant.xml.ftl	Tue Sep 14 17:06:31 2010 +0100
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <project name="run-qmake" default="all">
 
-    <target name="all" depends="sf-build-qmake,sf-build-qtextension-tools,sf-configure-orbit,sd-qmake-all-profiles"/>
+    <target name="all" depends="sf-build-qmake,sf-build-qtmobility-tools,sf-build-qtextension-tools,sf-configure-orbit,sd-qmake-all-profiles"/>
 
     <!-- Qmake needs to have been built in this environment, to generate bld.infs to built Qt itself.  
          Qmake.exe only exists in the source tree if its been built  -->
@@ -30,6 +30,26 @@
         </if>
     </target>
 
+    <target name="sf-build-qtmobility-tools">
+        <sequential>
+  <#list data["//unit[@bldFile = '/sf/mw/qtmobility/group']"] as unit>
+            <echo>INFO: Configuring qtmobility for ${unit.@bldFile}</echo>
+            <if>
+                <available file="${r'$'}{build.drive}${unit.@bldFile}" type="dir"/>
+                <then>
+                    <exec executable="cmd" dir="${r'$'}{build.drive}${unit.@bldFile}" failonerror="false">
+                        <arg value="/C"/>
+                        <arg line="sbs -c tools2 -j 4 --logfile=${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_qtmobility.log"/>
+                    </exec>
+                </then>
+                <else>
+                    <echo message="ERROR: Directory ${r'$'}{build.drive}${unit.@bldFile} doesn't exist."/>
+                </else>
+            </if>          
+  </#list>
+        </sequential>
+    </target>
+
     <target name="sf-build-qtextension-tools">
         <sequential>
   <#list data["//unit[@bldFile = '/sf/mw/qtextensions/group']"] as unit>