Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
authorMattD <mattd@symbian.org>
Fri, 20 Nov 2009 17:23:06 +0000
changeset 785 cf98fb6a1da9
parent 765 2892c791ce6c
child 786 24d6f993e110
Platform Build cenrep generatation - modified 'sf-s60-create-cenrep' to hopefully cope with the different CRML export paths coming from the different platform_paths.hrh. This isn't pretty.
sf-platform/build.xml
--- a/sf-platform/build.xml	Fri Nov 13 17:48:12 2009 +0000
+++ b/sf-platform/build.xml	Fri Nov 20 17:23:06 2009 +0000
@@ -493,16 +493,29 @@
 	</target>
 
 	<target name="sf-s60-create-cenrep">
-        <echo message="INFO Generating CenRep"/>
-        <exec executable="${helium.dir}/../ConfigurationTool/cli_build.cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_create_cenrep.log">
-		  <arg value="-master_conf"/>
-		  <arg value="s60"/>
-		  <arg value="-impl"/>
-		  <arg value="/epoc32/rom/config/confml_data/s60"/>
-		  <arg value="-confml"/>
-		  <arg value="/epoc32/rom/config/confml_data/s60"/>
-		  <arg value="-ignore_errors"/>
-        </exec>
+    <echo message="INFO Generating CenRep"/>
+    <echo message="Move 'sf.spec.s60.cenrep.export.location' out of the build..."/>
+    <property name="sf.spec.s60.cenrep.export.location.1" value="epoc32/rom/config/confml_data"/>
+    <property name="sf.spec.s60.cenrep.export.location.2" value="epoc32/rom/config/assets"/>
+
+		<if><available file="${build.drive}/${sf.spec.s60.cenrep.export.location.1}" type="dir"/>
+  		<then>
+    		<property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.1}"/>
+      </then>
+      <else>
+    		<property name="sf.spec.s60.cenrep.export.location" value="${sf.spec.s60.cenrep.export.location.2}"/>
+      </else>
+      </if>
+    <echo message="${helium.dir}/../ConfigurationTool/cli_build.cmd -master_conf s60 -impl ${sf.spec.s60.cenrep.export.location} -confml ${sf.spec.s60.cenrep.export.location} -ignore_errors" />  
+    <exec executable="${helium.dir}/../ConfigurationTool/cli_build.cmd" dir="${build.drive}" failonerror="false" output="${build.log.dir}/${build.id}_create_cenrep.log">
+      <arg value="-master_conf"/>
+      <arg value="s60"/>
+      <arg value="-impl"/>
+      <arg value="${sf.spec.s60.cenrep.export.location}"/>
+      <arg value="-confml"/>
+      <arg value="${sf.spec.s60.cenrep.export.location}"/>
+      <arg value="-ignore_errors"/>
+    </exec>
 		
 		<if><available  file="${build.drive}/cli_build_error.log" />
 		<then>