Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
authordariosestito@L063522.prod.ad.symbian.intra
Mon, 23 Mar 2009 17:58:41 +0000
changeset 24 1cdce57ae369
parent 23 cde62357aba5
child 25 393f5234e12c
Enabled sf.spec.systemdefinition.assemble flag to control sysdef merge stage
common/build.xml
--- a/common/build.xml	Mon Mar 23 16:10:32 2009 +0000
+++ b/common/build.xml	Mon Mar 23 17:58:41 2009 +0000
@@ -22,11 +22,6 @@
     <property name="base_release.path" value="${sf.spec.baseline.location}"/>
     <property name="base_release.getenv_options" value="${sf.spec.baseline.getenv_options}"/>
     
-    <target name="create-canonical-sysdef-file">
-      <echo message="Copying given system definition file where Helium expects it."/>
-      <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${build.drive}/output/build/canonical_system_definition.xml" failonerror="true" verbose="true"/>
-    </target>
-    
     <!-- import all core HELIUM targets -->
     <import file="${helium.dir}/helium.ant.xml" />
     
@@ -104,6 +99,20 @@
         <echo>[SF-BUILD-NOPREP]</echo>
     </target>
     
+    <target name="create-canonical-sysdef-file">
+      <if>
+        <istrue value="${sf.spec.systemdefinition.assemble}"/>
+        <then>
+          <echo message="Calling Helium create-canonical-sysdef-file target to assemble sysdef fragments."/>
+          <runtarget target="compile.create-canonical-sysdef-file"/>
+        </then>
+        <else>
+          <echo message="Will use ${build.drive}/${sf.spec.systemdefinition.location} as is as sysdef file"/>
+          <copy file="${build.drive}/${sf.spec.systemdefinition.location}" tofile="${build.drive}/output/build/canonical_system_definition.xml" failonerror="true" verbose="true"/>
+        </else>
+      </if>
+    </target>
+    
     <target name="sf-compile">    
     
     	<!-- TODO: add here assigments to raptor-related ant references -->