Updated script for symbian 4 system model.
authorJohan Groth <johang@symbian.org>
Mon, 13 Sep 2010 17:43:11 +0100
changeset 1253 4fbe6b3c1776
parent 1252 f2fbf395f696
child 1254 dfafee79af71
Updated script for symbian 4 system model.
common/tools/generate_system_models.pl
--- a/common/tools/generate_system_models.pl	Mon Sep 13 15:42:51 2010 +0100
+++ b/common/tools/generate_system_models.pl	Mon Sep 13 17:43:11 2010 +0100
@@ -3,6 +3,7 @@
 my $SYSDEFTOOLS_PATH = "packages\\sysdeftools";
 my $XALAN_J = "java -jar $SYSDEFTOOLS_PATH\\xalan.jar";
 my $XALAN_C = "packages\\sysmodelgen\\rsc\\installed\\Xalan\\Xalan.exe";
+my $joinsysdef_cmd = "perl $SYSDEFTOOLS_PATH\\joinsysdef.pl ";
 
 system("rmdir /S /Q tmp") if (-d "tmp");
 mkdir("tmp");
@@ -45,7 +46,16 @@
 		chomp $packages_changeset;
 		print "-->$packages_changeset<--\n";
 	}
-	my $full_cmd = "$XALAN_C -o $codeline\\full_system_model_3.0.xml $ROOT_SYSDEF $SYSDEFTOOLS_PATH\\joinsysdef.xsl";
+	my $full_cmd = '';
+	if ($codeline eq "symbian3")
+	{
+		$full_cmd = "$XALAN_C -o $codeline\\full_system_model_3.0.xml $ROOT_SYSDEF $SYSDEFTOOLS_PATH\\joinsysdef.xsl";	
+	}
+	elsif ($codeline eq "symbian4")
+	{
+		my $config_dir = "packages\\$codeline\\config";
+		$full_cmd = "$joinsysdef_cmd --out=$codeline\\full_system_model_3.0.xml --exclude-meta=Api --path=$ROOT_SYSDEF --config=$config_dir\\bldvariant.hrh -I$config_dir $ROOT_SYSDEF";
+	}
 	print "$full_cmd\n";
 	system($full_cmd);