Fix build.

This commit is contained in:
David Anderson 2014-05-26 22:17:58 -07:00
parent 53a8d5ac30
commit 9ed3a55ade

View File

@ -26,8 +26,30 @@ if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
chdir('OUTPUT');
my ($result, $argn);
$argn = $#ARGV + 1;
print "Attempting to reconfigure...\n";
my $conf_args = '--enable-optimize --breakpad-dump --no-color --symbol-files';
my @conf_argv = (
'--enable-optimize',
'--breakpad-dump',
'--no-color',
'--symbol-files'
);
if ($^O =~ /darwin/) {
push(@conf_argv, '--hl2sdk-root=/Volumes/hgshare');
push(@conf_argv, '--mms-path=/Users/builds/slaves/common/mmsource-1.10');
push(@conf_argv, '--mysql-path=/Users/builds/slaves/common/mysql-5.0');
} elsif ($^O =~ /linux/) {
push(@conf_argv, '--hl2sdk-root=/hgshare');
push(@conf_argv, '--mms-path=/home/builds/common/mmsource-1.10');
push(@conf_argv, '--mysql-path=/home/builds/common/mysql-5.0');
} elsif ($^O =~ /MSWin/) {
push(@conf_argv, '--hl2sdk-root=H:\\');
}
my $conf_args = join(' ', @conf_argv);
if ($argn > 0 && $^O !~ /MSWin/) {
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py $conf_args`;
} else {