Land coop's XULRunner build environment changes.

This commit is contained in:
cltbld 2005-08-22 18:36:11 +00:00
Родитель ef254f65e4
Коммит 4975d71134
1 изменённых файлов: 17 добавлений и 7 удалений

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

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.300 $ ';
$::UtilsVersion = '$Revision: 1.301 $ ';
package TinderUtils;
@ -438,7 +438,7 @@ sub SetupPath {
}
if ($Settings::OS eq 'Darwin') {
$ENV{PATH} = "/bin:/usr/bin:/sw/bin:$ENV{PATH}";
$ENV{PATH} = "/sw/bin:/bin:/usr/bin:$ENV{PATH}";
$Settings::ConfigureEnvArgs = 'CC=cc CXX=c++';
$Settings::Compiler = 'cc';
$Settings::mail = '/usr/bin/mail';
@ -447,10 +447,20 @@ sub SetupPath {
# There should be a way of auto-detecting this, for now
# you have to match BuildDebug and --enable-optimize,
# --disable-debug to make things work here.
$Settings::DistBin = "dist/";
# Deal with the most common case first.
if ($Settings::ProductName != 'XULRunner') {
$Settings::DistBin .= "$Settings::ProductName";
if ($Settings::BuildDebug) {
$Settings::DistBin = "dist/".$Settings::ProductName."Debug.app/Contents/MacOS";
$Settings::DistBin .= "Debug";
}
$Settings::DistBin .= ".app/Contents/MacOS";
} else {
$Settings::DistBin = "dist/".$Settings::ProductName.".app/Contents/MacOS";
# XULRunner needs a special output path on MacOS,
# and the path doesn't change based on debug settings.
$Settings::DistBin .= "XUL.framework/Versions/Current";
}
}
@ -668,7 +678,7 @@ sub encode_log {
if($Settings::LogEncoding eq 'base64') {
eval "use MIME::Base64 ();";
while(read($input_file, $buf, 60*57)) {
print $output_file MIME::Base64::encode($buf);
print $output_file &MIME::Base64::encode($buf);
}
}
elsif($Settings::LogEncoding eq 'uuencode') {