Fix build.
This commit is contained in:
parent
53a8d5ac30
commit
9ed3a55ade
@ -26,8 +26,30 @@ if (!(-f 'OUTPUT/.ambuild2/graph') || !(-f 'OUTPUT/.ambuild2/vars')) {
|
|||||||
chdir('OUTPUT');
|
chdir('OUTPUT');
|
||||||
my ($result, $argn);
|
my ($result, $argn);
|
||||||
$argn = $#ARGV + 1;
|
$argn = $#ARGV + 1;
|
||||||
|
|
||||||
print "Attempting to reconfigure...\n";
|
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/) {
|
if ($argn > 0 && $^O !~ /MSWin/) {
|
||||||
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py $conf_args`;
|
$result = `CC=$ARGV[0] CXX=$ARGV[0] python ../build/configure.py $conf_args`;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user