mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
add cmdline opts
This commit is contained in:
parent
1a4ea70c3d
commit
cf5c38789b
@ -465,6 +465,22 @@ close(LOGFILE);
|
|||||||
|
|
||||||
&logmsg("*** Panda Build Log Started at ".&gettimestr()." ***");
|
&logmsg("*** Panda Build Log Started at ".&gettimestr()." ***");
|
||||||
|
|
||||||
|
my @do_install_dir=(1,1,1,1);
|
||||||
|
|
||||||
|
if($#ARGV>=0) {
|
||||||
|
@do_install_dir=(0,0,0,0);
|
||||||
|
if($ARGV[0] eq $inst_dirnames[$INSTALLNUM]) {
|
||||||
|
$do_install_dir[$INSTALLNUM]=1;
|
||||||
|
} elsif($ARGV[0] eq $inst_dirnames[$DEBUGNUM]) {
|
||||||
|
$do_install_dir[$DEBUGNUM]=1;
|
||||||
|
} elsif($ARGV[0] eq $inst_dirnames[$RELEASENUM]) {
|
||||||
|
$do_install_dir[$RELEASENUM]=1;
|
||||||
|
} else {
|
||||||
|
&logmsg("invalid argument '".$ARGV[0]."' to builder.pl. arg must be 'install','debug', or 'release'\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!(-e $WIN_INSTALLDIR)) {
|
if(!(-e $WIN_INSTALLDIR)) {
|
||||||
&logmsg("ERROR: Cant access install directory!! ".$WIN_INSTALLDIR);
|
&logmsg("ERROR: Cant access install directory!! ".$WIN_INSTALLDIR);
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -516,24 +532,30 @@ SKIP_REMOVE:
|
|||||||
# this doesnt work unless you can completely remove the dirs, since cvs checkout
|
# this doesnt work unless you can completely remove the dirs, since cvs checkout
|
||||||
# bombs if dirs exist but CVS dirs do not.
|
# bombs if dirs exist but CVS dirs do not.
|
||||||
|
|
||||||
$ENV{'PANDA_OPTIMIZE'}='2';
|
if($do_install_dir[$INSTALLNUM]) {
|
||||||
&buildall($INSTALLNUM);
|
$ENV{'PANDA_OPTIMIZE'}='2';
|
||||||
|
&buildall($INSTALLNUM);
|
||||||
|
}
|
||||||
|
|
||||||
BEFORE_DBGBUILD:
|
BEFORE_DBGBUILD:
|
||||||
|
|
||||||
$ENV{'USE_BROWSEINFO'}='1'; # make .sbr files, this is probably obsolete
|
if($do_install_dir[$DEBUGNUM]) {
|
||||||
if(! $DEBUG_GENERATE_PYTHON_CODE_ONLY) {
|
$ENV{'USE_BROWSEINFO'}='1'; # make .sbr files, this is probably obsolete
|
||||||
$ENV{'PANDA_OPTIMIZE'}='1';
|
if(! $DEBUG_GENERATE_PYTHON_CODE_ONLY) {
|
||||||
}
|
$ENV{'PANDA_OPTIMIZE'}='1';
|
||||||
|
}
|
||||||
|
|
||||||
&buildall($DEBUGNUM);
|
&buildall($DEBUGNUM);
|
||||||
&make_bsc_file();
|
&make_bsc_file();
|
||||||
delete $ENV{'USE_BROWSEINFO'}; # this is probably obsolete
|
delete $ENV{'USE_BROWSEINFO'}; # this is probably obsolete
|
||||||
|
}
|
||||||
|
|
||||||
AFTER_DBGBUILD:
|
AFTER_DBGBUILD:
|
||||||
|
|
||||||
$ENV{'PANDA_OPTIMIZE'}='3';
|
if($do_install_dir[$RELEASENUM]) {
|
||||||
&buildall($RELEASENUM);
|
$ENV{'PANDA_OPTIMIZE'}='3';
|
||||||
|
&buildall($RELEASENUM);
|
||||||
|
}
|
||||||
|
|
||||||
&logmsg("*** Panda Build Log Finished at ".&gettimestr()." ***");
|
&logmsg("*** Panda Build Log Finished at ".&gettimestr()." ***");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user