Bug 335296 - Give tinderbox client the infant ability to build ff+xr, r=rhelmer+preed

This commit is contained in:
benjamin%smedbergs.us 2006-06-15 18:27:54 +00:00
Родитель 2ec795d487
Коммит 9d36790b1b
2 изменённых файлов: 30 добавлений и 16 удалений

Просмотреть файл

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.319 $ ';
$::UtilsVersion = '$Revision: 1.320 $ ';
package TinderUtils;
@ -407,7 +407,7 @@ sub SetupEnv {
}
if ($Settings::ObjDir ne '') {
$ENV{LD_LIBRARY_PATH} = "$topsrcdir/${Settings::ObjDir}/$Settings::DistBin:" . "$ENV{LD_LIBRARY_PATH}";
$ENV{LD_LIBRARY_PATH} = "$topsrcdir/${Settings::ObjDir}/${Settings::SubObjDir}$Settings::DistBin:" . "$ENV{LD_LIBRARY_PATH}";
} else {
$ENV{LD_LIBRARY_PATH} = "$topsrcdir/$Settings::DistBin:" . ($ENV{LD_LIBRARY_PATH} || "");
}
@ -818,8 +818,11 @@ sub BuildIt {
my $binary_basename = "$Settings::BinaryName";
$Settings::SubObjDir eq '' or $Settings::SubObjDir =~ m:/$: or
die 'ASSERT: \$SubObjDir needs a trailing slash!';
my $binary_dir;
$binary_dir = "$build_dir/$Settings::Topsrcdir/${Settings::ObjDir}/$Settings::DistBin";
$binary_dir = "$build_dir/$Settings::Topsrcdir/${Settings::ObjDir}/${Settings::SubObjDir}$Settings::DistBin";
my $dist_dir = "$build_dir/$Settings::Topsrcdir/${Settings::ObjDir}/dist";
my $full_binary_name = "$binary_dir/$binary_basename";
@ -999,10 +1002,12 @@ sub BuildIt {
unless ($Settings::SkipCheckout) {
# Pull using separate step so that we can timeout if necessary
my $make_co = "$Settings::Make -f $Settings::moz_client_mk " .
"$TreeSpecific::checkout_target";
my $make_co = "$Settings::Make -f $Settings::moz_client_mk $Settings::MakeOverrides ";
if ($Settings::FastUpdate) {
$make_co = "$Settings::Make -f $Settings::moz_client_mk fast-update";
$make_co .= "fast-update";
}
else {
$make_co .= $TreeSpecific::checkout_target;
}
# Run the checkout command.
@ -1294,17 +1299,21 @@ sub BinaryExists {
if (not -e $binary) {
print_log "$binary does not exist.\n";
0;
} elsif (not -s _) {
print_log "$binary is zero-size.\n";
0;
} elsif (not -x _) {
print_log "$binary is not executable.\n";
0;
} else {
print_log "$binary_basename exists, is nonzero, and executable.\n";
1;
return 0;
}
if (not -s _) {
print_log "$binary is zero-size.\n";
return 0;
}
if ($Settings::RequireExecutableBinary && not -x _) {
print_log "$binary is not executable.\n";
return 0;
}
print_log "$binary_basename built successfully.\n";
return 1;
}
sub min {

Просмотреть файл

@ -148,6 +148,10 @@ $moz_client_mk = 'client.mk';
#- Set if you want to build in a separate object tree
$ObjDir = '';
# If the build is a combined xulrunner+something, set the "something"
# subdirectory: example "firefox/" - NOTE: need trailing slash!
$SubObjDir = '';
# Extra build name, if needed.
$BuildNameExtra = '';
@ -172,6 +176,7 @@ $BuildConfigDir = 'mozilla/config';
$Topsrcdir = 'mozilla';
$BinaryName = 'mozilla-bin';
$RequireExecutableBinary = 1;
#
# For embedding app, use: