зеркало из https://github.com/mozilla/pjs.git
Fix for bug 83589 (Doing a commercial build clobbers DefinesOptions.h, forcing an entire rebuild). We now have separate headers for the optional defines for mozilla/commercial and debug/optimized. sr=sfraser.
This commit is contained in:
Родитель
c53ab35693
Коммит
5b6cf13b29
|
@ -44,6 +44,7 @@ use Moz::BuildCore;
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
|
|
||||||
my($prefs_file_name) = "Mozilla opt build prefs";
|
my($prefs_file_name) = "Mozilla opt build prefs";
|
||||||
|
my($config_header_file_name) = ":mozilla:config:mac:MozillaDefinesOptions.h";
|
||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
# hashes to hold build options
|
# hashes to hold build options
|
||||||
|
@ -70,7 +71,7 @@ SetupBuildRootDir(":mozilla:build:mac:build_scripts");
|
||||||
|
|
||||||
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
||||||
# Override the defaults using the preferences files.
|
# Override the defaults using the preferences files.
|
||||||
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:");
|
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:", $config_header_file_name);
|
||||||
|
|
||||||
my($do_checkout) = 0;
|
my($do_checkout) = 0;
|
||||||
my($do_build) = 1;
|
my($do_build) = 1;
|
||||||
|
|
|
@ -44,6 +44,7 @@ use Moz::BuildCore;
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
|
|
||||||
my($prefs_file_name) = "Mozilla debug build prefs";
|
my($prefs_file_name) = "Mozilla debug build prefs";
|
||||||
|
my($config_header_file_name) = ":mozilla:config:mac:MozillaDebugDefinesOptions.h";
|
||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
# hashes to hold build options
|
# hashes to hold build options
|
||||||
|
@ -70,7 +71,7 @@ SetupBuildRootDir(":mozilla:build:mac:build_scripts");
|
||||||
|
|
||||||
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
||||||
# Override the defaults using the preferences files.
|
# Override the defaults using the preferences files.
|
||||||
SetupDefaultBuildOptions(1, ":mozilla:dist:viewer_debug:");
|
SetupDefaultBuildOptions(1, ":mozilla:dist:viewer_debug:", $config_header_file_name);
|
||||||
|
|
||||||
my($do_pull) = 0; # overridden by flags and prefs
|
my($do_pull) = 0; # overridden by flags and prefs
|
||||||
my($do_build) = 1;
|
my($do_build) = 1;
|
||||||
|
|
|
@ -182,7 +182,7 @@ sub ConfigureBuildSystem()
|
||||||
|
|
||||||
printf("UNIVERSAL_INTERFACES_VERSION = 0x%04X\n", $main::UNIVERSAL_INTERFACES_VERSION);
|
printf("UNIVERSAL_INTERFACES_VERSION = 0x%04X\n", $main::UNIVERSAL_INTERFACES_VERSION);
|
||||||
|
|
||||||
UpdateConfigHeader(":mozilla:config:mac:DefinesOptions.h");
|
UpdateConfigHeader($main::DEFINESOPTIONS_FILE);
|
||||||
|
|
||||||
# alias required CodeWarrior libs into the Essential Files folder (only the Profiler lib now)
|
# alias required CodeWarrior libs into the Essential Files folder (only the Profiler lib now)
|
||||||
MakeLibAliases();
|
MakeLibAliases();
|
||||||
|
|
|
@ -47,9 +47,9 @@ use vars qw(@ISA @EXPORT);
|
||||||
#//--------------------------------------------------------------------------------------------------
|
#//--------------------------------------------------------------------------------------------------
|
||||||
#// SetupDefaultBuildOptions
|
#// SetupDefaultBuildOptions
|
||||||
#//--------------------------------------------------------------------------------------------------
|
#//--------------------------------------------------------------------------------------------------
|
||||||
sub SetupDefaultBuildOptions($$)
|
sub SetupDefaultBuildOptions($$$)
|
||||||
{
|
{
|
||||||
my($debug, $bin_dir) = @_;
|
my($debug, $bin_dir, $config_header_file_name) = @_;
|
||||||
|
|
||||||
# Here we set up defaults for the various build flags.
|
# Here we set up defaults for the various build flags.
|
||||||
# If you want to override any of these, it's best to do
|
# If you want to override any of these, it's best to do
|
||||||
|
@ -98,6 +98,7 @@ sub SetupDefaultBuildOptions($$)
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
|
|
||||||
$main::BIN_DIRECTORY = $bin_dir;
|
$main::BIN_DIRECTORY = $bin_dir;
|
||||||
|
$main::DEFINESOPTIONS_FILE = $config_header_file_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -463,6 +463,7 @@ sub BuildRuntimeDist()
|
||||||
InstallFromManifest(":mozilla:config:MANIFEST_xpfe", "$distdirectory:xpfe:");
|
InstallFromManifest(":mozilla:config:MANIFEST_xpfe", "$distdirectory:xpfe:");
|
||||||
InstallFromManifest(":mozilla:config:mac:MANIFEST", "$distdirectory:config:");
|
InstallFromManifest(":mozilla:config:mac:MANIFEST", "$distdirectory:config:");
|
||||||
InstallFromManifest(":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:");
|
InstallFromManifest(":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:");
|
||||||
|
MakeAlias($main::DEFINESOPTIONS_FILE, "$distdirectory:config:DefinesOptions.h");
|
||||||
|
|
||||||
#NSPR
|
#NSPR
|
||||||
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:");
|
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:");
|
||||||
|
|
|
@ -70,7 +70,7 @@ SetupBuildRootDir(":mozilla:build:mac:build_scripts");
|
||||||
|
|
||||||
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
||||||
# Override the defaults using the preferences files.
|
# Override the defaults using the preferences files.
|
||||||
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:");
|
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:", "");
|
||||||
|
|
||||||
my($do_checkout) = 1;
|
my($do_checkout) = 1;
|
||||||
my($do_build) = 0;
|
my($do_build) = 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче