Rollback the removal of overriden generate-layers target - required platform build
authorShabe Razvi <shaber@symbian.org>
Mon, 22 Jun 2009 13:20:48 +0100
changeset 211 29424d1bc56b
parent 209 6d9dd19b6949
child 212 ab3b43adbb0f
Rollback the removal of overriden generate-layers target - required platform build
sf-platform/build.xml
--- a/sf-platform/build.xml	Fri Jun 19 18:00:57 2009 +0100
+++ b/sf-platform/build.xml	Mon Jun 22 13:20:48 2009 +0100
@@ -88,6 +88,24 @@
         </for>
     </target>
 
+    <target name="generate-layers">
+       <echo message="canno-file:${canonical.sysdef.file}"/>
+       <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
+
+       <!-- All we want is a sysdef with the config name appended, so just copy it -->
+       <echo message="INFO: Skip GenXML and copy sysdef to sysdef+config name"/>
+       <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
+
+	<copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
+		<filterchain>
+			<linecontainsregexp negate="true">
+			  <regexp pattern="^\s*$"/>
+			</linecontainsregexp>
+		</filterchain>
+	</copy>
+	<delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
+	</target>
+
   <!--
     == Name: SF-COMPILE
     ==