diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-22 07:49:19 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-02-22 07:49:19 +0000 |
commit | 5c69b0499e170fdffb3e87741773c31631188054 (patch) | |
tree | 20f57e41c41a8edbfb5969fcb01ec29e5f99c942 /bin | |
parent | bb2ed648327d7919f2273625fa957bd90fe1dae0 (diff) | |
download | ATCD-5c69b0499e170fdffb3e87741773c31631188054.tar.gz |
*** empty log message ***
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/auto_compile_win32.pl | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/bin/auto_compile_win32.pl b/bin/auto_compile_win32.pl new file mode 100755 index 00000000000..67d154c3e13 --- /dev/null +++ b/bin/auto_compile_win32.pl @@ -0,0 +1,105 @@ + +# $Id$ +# Win32 autobuild helper. + +# use lib "$ENV{ACE_ROOT}/bin"; + +$Ignore_error = 0; + +@Lists= ("Win32 Debug", + "Win32 Release", + "Win32 Unicode Debug", + "Win32 Unicode Release"); + +%DLL_Collections = ( "$Lists[0]" => <<EOD , +ace/ace.dsw, ACE dynamic library: +apps/gperf/src/gperf.dsw, ALL: +TAO/tao/TAO.dsw, TAO: +TAO/TAO_IDL/tao_idl.dsw, TAO_IDL Compiler: +TAO/orbsvcs/orbsvcs/orbsvcs.dsw, orbsvcs: +tests/tests.dsw, ALL: +EOD + "$Lists[1]" => <<EOD , +ace/ace.dsw, ACE dynamic library: +apps/gperf/src/gperf.dsw, ALL: +TAO/tao/TAO.dsw, TAO: +TAO/TAO_IDL/tao_idl.dsw, TAO_IDL Compiler: +TAO/orbsvcs/orbsvcs/orbsvcs.dsw, orbsvcs: +EOD + "$Lists[2]" => <<EOD , +ace/ace.dsw, ACE dynamic library: +EOD + "$Lists[3]" => <<EOD +ace/ace.dsw, ACE dynamic library: +EOD + ); + +%Lib_Collections = ( "$Lists[0]" => <<EOD , +ace/ace.dsw, ACE static library: +TAO/tao/TAO.dsw, TAO_Static: +TAO/TAO_IDL/tao_idl.dsw, TAO_IDL Compiler Static: +TAO/orbsvcs/orbsvcs/orbsvcs.dsw, orbsvcs_static: +EOD + "$Lists[1]" => <<EOD , +ace/ace.dsw, ACE static library: +TAO/tao/TAO.dsw, TAO_Static: +TAO/TAO_IDL/tao_idl.dsw, TAO_IDL Compiler Static: +TAO/orbsvcs/orbsvcs/orbsvcs.dsw, orbsvcs_static: +EOD + "$Lists[2]" => <<EOD , +ace/ace.dsw, ACE static library: +EOD + "$Lists[3]" => <<EOD +ace/ace.dsw, ACE static library: +EOD + ); + + +sub Build_Config +{ + my $Config = shift; + my $Collection = shift; + my $Bname = ""; + my $Project_File = ""; + my $Project_Name = ""; + my $Status = -1; + my $Cntr = 0; + + @Collection = split /:\s*/, $Collection; + for ($Cntr = 0; $Cntr < scalar (@Collection); $Cntr++) + { + $Project_Dir = $Collection[$Cntr]; + $Project_Dir =~ s/(.*)\/[^\/]*/$1/; + $Bname = $Collection[$Cntr]; + $Bname =~ s/.*\/([^\/]*)/$1/; + ($Project_File, $Project_Name) = split /,\s*/, $Bname; + chdir ("$ENV{ACE_ROOT}/$Project_Dir"); + $Status = + system "msdev.com $Project_File /MAKE \"$Project_Name - $Config\"\n"; + print "$Status = msdev.com $Project_File /MAKE \"$Project_Name - $Config\"\n"; + if ($Ignore_error == 0) + { + return if $Status != 0; + } + } +} + +sub Build_Collection +{ + my $Cntr = 0; + for (; $Cntr < scalar(@Lists); $Cntr ++) + { + $Config = $Lists[$Cntr]; + Build_Config ($Config, $Target{$Config}); + } +} + +$Ignore_error = 1; + +%Target = %DLL_Collections; +Build_Collection; + +%Target = %Lib_Collections; +Build_Collection; + +print "End\n"; |