Browse Source

PPREMAKE_PLATFORM

cxgeorge 23 years ago
parent
commit
19abb2d844
2 changed files with 5 additions and 4 deletions
  1. 4 4
      pandatool/src/scripts/basedlls.pl
  2. 1 0
      pandatool/src/scripts/builder.pl

+ 4 - 4
pandatool/src/scripts/basedlls.pl

@@ -10,7 +10,6 @@ $archive_root="\\\\dimbo\\panda\\win\\";
 #edit this to where rebase.exe is on your machine, must be cygwin-style path for cygwin perl
 #edit this to where rebase.exe is on your machine, must be cygwin-style path for cygwin perl
 $rebase_path="/msvc7/Common7/Tools/bin";
 $rebase_path="/msvc7/Common7/Tools/bin";
 $ENV{'PATH'}=$rebase_path.":".$ENV{'PATH'};
 $ENV{'PATH'}=$rebase_path.":".$ENV{'PATH'};
-print $ENV{'PATH'},"\n";
 
 
 # note: this is the order dlls will be laid out in memory
 # note: this is the order dlls will be laid out in memory
 @dll_names=("libpanda","libpandadx","libpandadx7","libpandagl","libpandaexpress","libpandaphysics","libpandafx","libdtool","libdtoolconfig","libpystub","libdirect","libtoontown","libmiles_audio","libpandaegg");
 @dll_names=("libpanda","libpandadx","libpandadx7","libpandagl","libpandaexpress","libpandaphysics","libpandafx","libdtool","libdtoolconfig","libpystub","libdirect","libtoontown","libmiles_audio","libpandaegg");
@@ -97,11 +96,12 @@ $argstr="-v -b $baseaddr -c $dllbasefile -l $basedlllogfilename $dll_names_dbg";
 print $args[0]."\n";
 print $args[0]."\n";
 system(@args);
 system(@args);
 
 
+#cygwin d2u seems to not work rite
+$d2u_path=$ENV{'HOME'}."/player/wintools/bin";
+$ENV{'PATH'}=$d2u_path.":".$ENV{'PATH'};
+print $ENV{'PATH'},"\n";
 @args=("dos2unix",$dllbasefile);
 @args=("dos2unix",$dllbasefile);
 print $args[0]." ".$args[1]." ".$args[2]."\n";
 print $args[0]." ".$args[1]." ".$args[2]."\n";
 system(@args);
 system(@args);
 
 
-
 exit(0);
 exit(0);
-
-

+ 1 - 0
pandatool/src/scripts/builder.pl

@@ -44,6 +44,7 @@ my $VC7_BINDIRS="/msvc7/Vc7/bin".$DIRPATH_SEPARATOR."/msvc7/Common7/Tools/Bin".$
 $ENV{'WINTOOLS'} = '/home/builder/player/wintools';
 $ENV{'WINTOOLS'} = '/home/builder/player/wintools';
 #$ENV{'PPREMAKE_CONFIG'} = '/usr/local/etc/Config.pp';  old location
 #$ENV{'PPREMAKE_CONFIG'} = '/usr/local/etc/Config.pp';  old location
 $ENV{'PPREMAKE_CONFIG'} = $ENV{'WINTOOLS'}.'/panda/etc/Config.pp';
 $ENV{'PPREMAKE_CONFIG'} = $ENV{'WINTOOLS'}.'/panda/etc/Config.pp';
+$ENV{'PPREMAKE_PLATFORM'} = 'Win32';  # generate OptX-Win32 dirs instead of OptX-Cygwin
 $ENV{'TCSH_NO_CSHRC_CHDIR'}='1';
 $ENV{'TCSH_NO_CSHRC_CHDIR'}='1';
 $ENV{'ENABLE_PROFILING'}='1';    # generate .map files
 $ENV{'ENABLE_PROFILING'}='1';    # generate .map files