common/templates/run-qmake.ant.xml.ftl
changeset 1200 17aa569095fc
parent 1186 8174fb206005
child 1201 7ff3bbb2e9d9
--- a/common/templates/run-qmake.ant.xml.ftl	Wed Jul 28 14:18:15 2010 +0100
+++ b/common/templates/run-qmake.ant.xml.ftl	Mon Aug 02 17:40:29 2010 +0100
@@ -6,86 +6,84 @@
     <!-- 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  -->
 
-    <if><not><available file="${r'$'}{build.drive}/sf/mw/qt/bin/qmake.exe" type="file"/></not>
-    <then>
-	        <sequential>
-	<#list data["//unit/@bldFile/.."] as unit>
-          <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
-                <echo>INFO: Building and configuring qmake 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_qmake.log"/>
-                        </exec>
-                    </then>
-                    <else>
-                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
-                       <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
-                    </else>
-                </if>          
-	      </#if>
-    </#list>			
-			</sequential>
-    </then>
-    </if>
-	        <sequential>
+        <if><not><available file="${r'$'}{build.drive}/sf/mw/qt/bin/qmake.exe" type="file"/></not>
+            <then>
+                <sequential>
+  <#list data["//unit/@bldFile/.."] as unit>
+      <#if (unit.@bldFile=="/sf/mw/qt/src/s60installs/deviceconfiguration")>
+                    <echo>INFO: Building and configuring qmake 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_qmake.log"/>
+                            </exec>
+                        </then>
+                        <else>
+                           <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
+                           <fail message="Unit /sf/mw/qt/src/s60installs/deviceconfiguration is in the model, but not present on disk. Cannot build qmake!"/>
+                        </else>
+                    </if>          
+      </#if>
+  </#list>
+                </sequential>
+            </then>
+        </if>
 
-	<#list data["//unit/@bldFile/.."] as unit>
-          <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
-                <echo>INFO: Configuring qtextensions 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_qtextensions.log"/>
-                        </exec>
-                    </then>
-                    <else>
-                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
-                    </else>
-                </if>          
-	      </#if>
-    </#list>			
-			</sequential>
-			
-            <sequential>
-    <#list data["//unit/@proFile/.."] as unit>
-          <#if (unit.@proFile=="hb.pro")>
-                <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
-                <if>
-                    <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
-                    <then>
-                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
-                            <arg value="/C"/>
-                            <arg value="python"/>
-                            <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"/>
-                        </exec>
+        <sequential>
+  <#list data["//unit/@bldFile/.."] as unit>
+      <#if (unit.@bldFile=="/sf/mw/qtextensions/group")>
+            <echo>INFO: Configuring qtextensions 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_qtextensions.log"/>
+                    </exec>
+                </then>
+                <else>
+                    <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
+                </else>
+            </if>          
+      </#if>
+  </#list>
+        </sequential>
+
+        <sequential>
+  <#list data["//unit/@proFile/.."] as unit>
+      <#if (unit.@proFile=="hb.pro")>
+            <echo>Running configure.py for ${unit.@bldFile}/${unit.@proFile}</echo>
+            <if>
+                <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
+                <then>
+                    <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_compile_hb_configure.log">
+                        <arg value="/C"/>
+                        <arg value="python"/>
+                        <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"/>
+                    </exec>
                         
-                        <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
-                        <echo>INFO: Running Orbit theme installer, make install step</echo>
-                        <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
-                            <arg value="/C"/>
-                            <arg value="make install"/>
-                        </exec>
-                    </then>
-                    <else>
-                       <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
-                    </else>
-                </if>
-	  </#if>
-    </#list>
+                    <echo>INFO: Exporting Orbit mkspecs to epoc32\tools for ${unit.@bldFile}/${unit.@proFile}</echo>
+                    <echo>INFO: Running Orbit theme installer, make install step</echo>
+                    <exec executable="cmd" dir="${r'$'}{build.drive}/${unit.@bldFile}" failonerror="false" output="${r'$'}{build.drive}/output/logs/${ant['build.id']}_install_hb_configure.log">
+                        <arg value="/C"/>
+                        <arg value="make install"/>
+                    </exec>
+                </then>
+                <else>
+                    <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
+                </else>
+            </if>
+      </#if>
+  </#list>
 
-            </sequential>
+        </sequential>
 
         <parallel threadCount="${r'$'}{number.of.threads}">
-    <#list data["//unit/@proFile/.."] as unit>
+  <#list data["//unit/@proFile/.."] as unit>
             <sequential>
-
-          <#if (unit.@proFile!="hb.pro")>
-
+      <#if (unit.@proFile!="hb.pro")>
                 <echo>Running qmake for ${unit.@bldFile}/${unit.@proFile}</echo>
                 <if>
                     <available file="${r'$'}{build.drive}/${unit.@bldFile}" type="dir"/>
@@ -94,11 +92,11 @@
                             <arg value="/C"/>
                             <arg value="qmake"/>
                             <!-- arg value="-listgen"/ -->
-                            <#if unit.@qmakeArgs[0]??>
+          <#if unit.@qmakeArgs[0]??>
                             <arg line="${unit.@qmakeArgs?xml}"/>
-                            <#else>
+          <#else>
                             <arg line="${ant['qt.qmake.default.args']?xml}"/>
-                            </#if>
+          </#if>
                             <arg value="${unit.@proFile?xml}"/>
                         </exec>
                     </then>
@@ -106,11 +104,9 @@
                        <echo message="ERROR: Directory ${r'$'}{build.drive}/${unit.@bldFile} doesn't exist."/>
                     </else>
                 </if>          
-	  </#if>
-
-
+      </#if>
             </sequential>
-    </#list>
+  </#list>
         </parallel>
     </target>