glib/tsrc/genatsmodules.bat
changeset 18 47c74d1534e1
parent 0 e4d67989cc36
child 45 4b03adbd26ca
child 71 28ccaba883f4
equal deleted inserted replaced
0:e4d67989cc36 18:47c74d1534e1
   101 	session files.
   101 	session files.
   102 EOHelp
   102 EOHelp
   103 		exit();
   103 		exit();
   104 }
   104 }
   105 my $do_armv5 = 1;
   105 my $do_armv5 = 1;
   106 my $do_winscw = 1;
   106 my $do_winscw = 0;
   107 
   107 
   108 if(scalar @ARGV == 1)
   108 if(scalar @ARGV == 1)
   109 {
   109 {
   110 	if($ARGV[0] eq "session")
   110 	if($ARGV[0] eq "session")
   111 	{
   111 	{
   200 	 if(rindex($templateRoot, "stdlibs") != -1)
   200 	 if(rindex($templateRoot, "stdlibs") != -1)
   201 	 {
   201 	 {
   202 	 	$srcPrefix =~ /(.*)stdlibs.*/;
   202 	 	$srcPrefix =~ /(.*)stdlibs.*/;
   203 	 	$srcPrefix = $1;
   203 	 	$srcPrefix = $1;
   204 	 	
   204 	 	
   205 	 	if($suite eq "glib")
   205 	 	if($suite eq "glib-2.20.4")
   206 	 	{
   206 	 	{
   207 	 		$templateRoot = $srcPrefix."/glib/tsrc/";
   207 	 		$templateRoot = $srcPrefix."/glib-2.20.4/";
   208 	 	}
   208 	 	}
   209 	 	elsif($suite eq "ssl")
   209 	 	elsif($suite eq "ssl")
   210 	 	{
   210 	 	{
   211 	 		$templateRoot = $srcPrefix."/ssl/tsrc/";
   211 	 		$templateRoot = $srcPrefix."/ssl/tsrc/";
   212 	 	}
   212 	 	}
   215 	 		print "ngi atsinput creation not supported from mobileruntime\n";
   215 	 		print "ngi atsinput creation not supported from mobileruntime\n";
   216 	 		exit();
   216 	 		exit();
   217 	 	}
   217 	 	}
   218 	 }
   218 	 }
   219 	 
   219 	 
   220 	if(rindex($templateRoot, "glib") != -1)
   220 	if(rindex($templateRoot, "glib-2.20.4") != -1)
   221 	{
   221 	{
   222 		$suite = "glib";
   222 		$suite = "glib-2.20.4";
   223 	}
   223 	}
   224 	elsif(rindex($templateRoot, "ssl") != -1)
   224 	elsif(rindex($templateRoot, "ssl") != -1)
   225 	{
   225 	{
   226 		$suite = "ssl";
   226 		$suite = "ssl";
   227 	}
   227 	}
   309   				 ["ostream_seeks-1.tst","ostream_seeks", "/../internal/testapps/gnu/io/doc/", "/General/", "C:\\TestFramework\\gnu"],
   309   				 ["ostream_seeks-1.tst","ostream_seeks", "/../internal/testapps/gnu/io/doc/", "/General/", "C:\\TestFramework\\gnu"],
   310   				 ["infile_auto.txt","multi_thread_auto", "/../internal/testapps/doc/", "/General/", "C:\\TestFramework\\tstdcpp"],
   310   				 ["infile_auto.txt","multi_thread_auto", "/../internal/testapps/doc/", "/General/", "C:\\TestFramework\\tstdcpp"],
   311 );
   311 );
   312 
   312 
   313 my @gliblist = (
   313 my @gliblist = (
   314   				 ["1.gmarkup", "markup_test", "/epoc32/winscw/c/", "/General/", "C:"],
   314   				 ["valid-1.gmarkup", "markup_test", "/epoc32/winscw/c/", "/General/", "C:"],
   315    				 ["1.gmarkup", "markup-test", "/epoc32/winscw/c/", "/General/", "C:"],
   315 				 ["valid-01.xbel", "bookmarkfile_test", "/epoc32/winscw/c/", "/General/", "C:"],
   316   				 ["iochannel-test-infile", "iochannel_test",  "/epoc32/winscw/c/", "/General/", "C:"],
   316   				 ["iochannel-test-infile", "iochannel_test",  "/epoc32/winscw/c/", "/General/", "C:"],
   317   				 ["iochannel-test-infile", "iochannel-test",  "/epoc32/winscw/c/", "/General/", "C:"],
   317   				 ["casemap.txt",  "unicode_caseconv",  "/epoc32/winscw/c/", "/General/", "C:"],
   318 #  				 ["casemap.bin",  "unicode-caseconv",  "/epoc32/winscw/c/", "/General/", "C:"],
   318   				 ["casefold.txt", "unicode_caseconv",  "/epoc32/winscw/c/", "/General/", "C:"],
   319 #  				 ["casefold.bin", "unicode-caseconv",  "/epoc32/winscw/c/", "/General/", "C:"],
   319   				 ["utf8.txt", "unicode_encoding","/epoc32/winscw/c/", "/General/", "C:"],
   320   				 ["utf8.txt", "unicode-encoding","/epoc32/winscw/c/", "/General/", "C:"],
   320   				 ["collate-1.unicode", "unicode_collate","/epoc32/winscw/c/", "/General/", "C:"],
   321   				 ["casecollate.txt", "unicode-collate","/epoc32/winscw/c/", "/General/", "C:"],
   321   				 ["NormalizationTest.txt", "unicode_normalize","/epoc32/winscw/c/", "/General/", "C:"],
   322   				 ["utf8_hindi.txt", "tutf8","/epoc32/winscw/c/", "/General/", "C:"],
   322   				 ["4096-random-bytes", "strfuncs", "/epoc32/winscw/c/", "/General/", "C:"],
   323   				 ["scanfile.txt", "tscanner","/epoc32/winscw/c/", "/General/", "C:"],
       
   324   				 ["test.txt", "dir_test","/epoc32/winscw/c/temp/tmp/", "/General/", "C:\\temp\\tmp"],
       
   325   				 ["NormalizationTest.txt", "unicode-normalize","/epoc32/winscw/c/", "/General/", "C:"],
       
   326   				 
       
   327   				 ["helloworld.exe", "spawn_test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   323   				 ["helloworld.exe", "spawn_test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   328   				 ["helloworld.exe", "spawn_test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   324   				 ["helloworld.exe", "spawn_test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   329   				 
   325   				 
   330   				 ["libmoduletestplugin_a.dll", "module-test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   326   				 ["libmoduletestplugin_a.dll", "module_test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   331   				 ["libmoduletestplugin_a.dll", "module-test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   327   				 ["libmoduletestplugin_a.dll", "module_test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   332   				 
   328   				 
   333   				 ["libmoduletestplugin_b.dll", "module-test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   329   				 ["libmoduletestplugin_b.dll", "module_test","/epoc32/release/armv5/urel/", "/armv5_urel/", "C:\\sys\\bin"],
   334   				 ["libmoduletestplugin_b.dll", "module-test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   330   				 ["libmoduletestplugin_b.dll", "module_test","/epoc32/release/winscw/udeb/", "/winscw_udeb/", "Z:\\sys\\bin"],
   335   				 
   331   				 
   336   			  				 
   332   			  				 
   337   				 );
   333   				 );
   338   				 
   334   				 
   339 my @ngilist = (
   335 my @ngilist = (
   354 
   350 
   355   				 
   351   				 
   356 
   352 
   357 
   353 
   358 my $validexpansions = "all stdlibs combined";
   354 my $validexpansions = "all stdlibs combined";
   359 my $validLibraries = "ltp opts lsb glib ssl ngi pcts stdcpp gcce libc-locale play_new";
   355 my $validLibraries = "ltp opts lsb glib-2.20.4 ssl ngi pcts stdcpp gcce libc-locale play_new";
   360 if(rindex($validexpansions, $suite)== -1 && rindex($validLibraries, $suite) == -1)
   356 if(rindex($validexpansions, $suite)== -1 && rindex($validLibraries, $suite) == -1)
   361 {
   357 {
   362 	die("$suite is not a valid library. Valid options are $validexpansions $validLibraries");
   358 	die("$suite is not a valid library. Valid options are $validexpansions $validLibraries");
   363 }
   359 }
   364 
   360 
   460 	
   456 	
   461 	@generatedModules = GetCompiledModules($optsGroupPath."/bld.inf");
   457 	@generatedModules = GetCompiledModules($optsGroupPath."/bld.inf");
   462 	DoGen("opts",".dll");
   458 	DoGen("opts",".dll");
   463 
   459 
   464 }
   460 }
   465 if ($suite eq "glib")
   461 if ($suite eq "glib-2.20.4")
   466 {
   462 {
   467 	my $bldfile = $templateRoot."/glib_nonstif/group/bld.inf";
   463 	my $bldfile = $templateRoot."/group/bld.inf";
       
   464 	my $fileName = $templateRoot;
       
   465 	#chopn("$fileName", 5);
       
   466 	chop($fileName);
       
   467 	chop($fileName);
       
   468 	chop($fileName);
       
   469 	chop($fileName);
       
   470 	chop($fileName);
       
   471 	
       
   472 	$bldfile = $fileName."/build/symbian/tests/group/bld.inf";
       
   473 	print "bldfile: $bldfile\n";	
   468 	my @glibModules = GetCompiledModules($bldfile);
   474 	my @glibModules = GetCompiledModules($bldfile);
       
   475 	#mahesh
       
   476 	print "glibModules: @glibModules\n";
   469 	@generatedModules = @glibModules;
   477 	@generatedModules = @glibModules;
   470 	DoGen("glib",".exe");
   478 	
       
   479 	$bldfile = $fileName."/build/symbian/tests/gobject/group/bld.inf";
       
   480 	print "bldfile: $bldfile\n";	
       
   481 	my @glibModules = GetCompiledModules($bldfile);
       
   482 	#mahesh
       
   483 	print "glibModules: @glibModules\n";
       
   484 	my $i =0;
       
   485 	foreach my $name(@glibModules){
       
   486 		@glibModules[$i] =~ s/ //;
       
   487 		$i = $i + 1;
       
   488 	}
       
   489 	push(@generatedModules, @glibModules);
       
   490 	
       
   491 	$bldfile = $fileName."/build/symbian/tests/refcount/group/bld.inf";
       
   492 	print "bldfile: $bldfile\n";	
       
   493 	my @glibModules = GetCompiledModules($bldfile);
       
   494 	#mahesh
       
   495 	print "glibModules: @glibModules\n";
       
   496 	my $i =0;
       
   497 	foreach my $name(@glibModules){
       
   498 		@glibModules[$i] =~ s/ //;
       
   499 		$i = $i + 1;
       
   500 	}
       
   501 	push(@generatedModules, @glibModules);
       
   502 	
       
   503 	$bldfile = $fileName."/build/symbian/glib/tests/group/bld.inf";
       
   504 	print "bldfile: $bldfile\n";	
       
   505 	my @glibModules = GetCompiledModules($bldfile);
       
   506 	#mahesh
       
   507 	print "glibModules: @glibModules\n";
       
   508 	my $i =0;
       
   509 	foreach my $name(@glibModules){
       
   510 		@glibModules[$i] =~ s/ //;
       
   511 		$i = $i + 1;
       
   512 	}
       
   513 	push(@generatedModules, @glibModules);
       
   514 	
       
   515 	$bldfile = $fileName."/build/symbian/gobject/tests/group/bld.inf";
       
   516 	print "bldfile: $bldfile\n";	
       
   517 	my @glibModules = GetCompiledModules($bldfile);
       
   518 	#mahesh
       
   519 	print "glibModules: @glibModules\n";
       
   520 	my $i =0;
       
   521 	foreach my $name(@glibModules){
       
   522 		@glibModules[$i] =~ s/ //;
       
   523 		$i = $i + 1;
       
   524 	}
       
   525 	
       
   526 	push(@generatedModules, @glibModules);
       
   527 	
       
   528 	DoGen("glib-2.20.4",".exe");
   471 	my $gDataRef = \@gliblist;
   529 	my $gDataRef = \@gliblist;
   472 	CopyArbitDatFiles("glib",$gDataRef);
   530 	CopyArbitDatFiles("glib-2.20.4",$gDataRef);
   473 	
   531 	
   474 	if($install eq "yes")
   532 	if($install eq "yes")
   475 	{
   533 	{
   476 		my @saved = @dllList;
   534 		my @saved = @dllList;
   477 		my @glib2dllList = ("glibbackend.dll", "Libgobject.dll", "libgmodule.dll", "libgthread.dll",
   535 		my @glib2dllList = ("glibbackend.dll", "Libgobject.dll", "libgmodule.dll", "libgthread.dll",
   478                 "libglib.dll");
   536                 "libglib.dll");
   479                 
   537                 
   480    my  @glib1List = ( "libgobject.dll", "libgmodule.dll", "libgthread.dll",  "libglib.dll", );
   538    my  @glib1List = ( "libgobject.dll", "libgmodule.dll", "libgthread.dll",  "libglib.dll", );
   481   @dllList = @glib2dllList;
   539   @dllList = @glib2dllList;
   482   CopySharedDlls("glib",\@dllList);     	
   540   CopySharedDlls("glib-2.20.4",\@dllList);     	
   483   TransformXmls("glib", "shared");
   541   TransformXmls("glib-2.20.4", "shared");
   484    	
   542    	
   485 		@dllList = @saved;
   543 		@dllList = @saved;
   486 	}#if install
   544 	}#if install
   487 }#glib
   545 }#glib-2.20.4
   488 
   546 
   489 
   547 
   490 if ($suite eq "ssl")
   548 if ($suite eq "ssl")
   491 {
   549 {
   492 	my $stripStatus = $dontStrip;
   550 	my $stripStatus = $dontStrip;
  1029 	#copy the provided cfg, ini and xmls
  1087 	#copy the provided cfg, ini and xmls
  1030 	if($libname eq "opts")
  1088 	if($libname eq "opts")
  1031 	{
  1089 	{
  1032 		CopyOptsCfg($libname);
  1090 		CopyOptsCfg($libname);
  1033 	}
  1091 	}
  1034 	elsif($libname eq "ltp" || $libname eq "lsb" || $libname eq "glib")
  1092 	elsif($libname eq "ltp" || $libname eq "lsb" || $libname eq "glib-2.20.4")
  1035 	{
  1093 	{
  1036 	  #copy latter and  dont copy respectively for ltp and lsb
  1094 	  #copy latter and  dont copy respectively for ltp and lsb
  1037 	}
  1095 	}
  1038 	else
  1096 	else
  1039 	{
  1097 	{
  1713   		}
  1771   		}
  1714   }#ref processing
  1772   }#ref processing
  1715 }#fn
  1773 }#fn
  1716 
  1774 
  1717 
  1775 
  1718 #glib dat file copy
  1776 #glib-2.20.4 dat file copy
  1719 sub CopyArbitDatFiles($$)
  1777 sub CopyArbitDatFiles($$)
  1720 {
  1778 {
  1721 	
  1779 	
  1722 	 my $libname = shift @_;
  1780 	 my $libname = shift @_;
  1723 	 my $refArr = shift @_;
  1781 	 my $refArr = shift @_;
  1757   		{
  1815   		{
  1758   			die("DIED: no Dat file  $src found to copy!");
  1816   			die("DIED: no Dat file  $src found to copy!");
  1759   		}
  1817   		}
  1760   		foreach my $file(@filesFound)
  1818   		foreach my $file(@filesFound)
  1761   		{
  1819   		{
  1762   			copy($file, $dst) || die("DIED: unable to copy $file to $dst");
  1820   			copy($file, $dst) || warn("DIED: unable to copy $file to $dst");
  1763   		}
  1821   		}
  1764   		
  1822   		
  1765   		if($targetDst ne "")
  1823   		if($targetDst ne "")
  1766   		{
  1824   		{
  1767   			 		my @filesToChange = ();
  1825   			 		my @filesToChange = ();