Merge He 9 Fix
authorChetan Kapoor <chetank@symbian.org>
Thu, 26 Aug 2010 12:45:10 +0100
changeset 1229 485d259b2da8
parent 1227 e2a18db6b562 (diff)
parent 1228 32ae1f6f1c35 (current diff)
child 1233 3df3f73a7802
Merge He 9 Fix
--- a/common/build.xml	Thu Aug 26 12:39:14 2010 +0100
+++ b/common/build.xml	Thu Aug 26 12:45:10 2010 +0100
@@ -126,11 +126,7 @@
           </hlm:signalInput>
 
           <!-- configure stages -->
-          <hlm:stage id="preparation" starttarget="sf-prebuild" endtarget="sf-prebuild"/>
-          <hlm:stage id="compilation" starttarget="sf-compile" endtarget="sf-compile"/>
-          <hlm:stage id="romcreation" starttarget="sf-build-roms" endtarget="sf-build-roms"/>
-          <hlm:stage id="postbuild" starttarget="sf-postbuild" endtarget="sf-postbuild"/>
-          
+          <import file="config/stages_config.ant.xml" />
       </then>
     </if>
     
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/config/stages_config.ant.xml	Thu Aug 26 12:45:10 2010 +0100
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="sf-stages-config" xmlns:hlm="http://www.nokia.com/helium">
+    <description>
+    Defines what build stages to log during an sf build and how each build stage is recorded.
+    </description>
+    
+    <!-- Stages configuration -->
+    <hlm:stage id="preparation" starttarget="sf-prebuild" endtarget="sf-prebuild"/>
+    <hlm:stage id="compilation" starttarget="sf-compile" endtarget="sf-compile"/>
+    <hlm:stage id="romcreation" starttarget="sf-build-roms" endtarget="sf-build-roms"/>
+    <hlm:stage id="postbuild" starttarget="sf-postbuild" endtarget="sf-postbuild"/>
+
+    <!-- helium 9+ compatibility -->
+    <propertyregex property="short.helium.version" input="${helium.version}" regexp="(\d+.?\d*)" select="\1" casesensitive="false" />
+    <if>
+        <isgreaterthan arg1="${short.helium.version}" arg2="8"/>
+    <then>   
+        <!-- Stage record configuration -->
+        <hlm:stagerecord id="stage.preparation" stagerefid="preparation" output="${build.log.dir}/${build.id}_prep.ant.log" />
+        <hlm:stagerecord id="stage.compilation"  stagerefid="compilation" output="${build.log.dir}/${build.id}_compile.ant.log" />
+        <hlm:stagerecord id="stage.romcreation"  stagerefid="romcreation" output="${build.log.dir}/${build.id}_romcreation.ant.log" />
+        <hlm:stagerecord id="stage.postbuild"  stagerefid="postbuild" output="${build.log.dir}/${build.id}_postbuild.ant.log" />
+    </then>
+    </if>
+    
+</project>