2000-09-18 20:54:48 +00:00
|
|
|
#!perl
|
|
|
|
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
|
|
|
# Communications Corporation. Portions created by Netscape are
|
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
2000-10-26 20:00:34 +00:00
|
|
|
# Simon Fraser <sfraser@netscape.com>
|
2000-09-18 20:54:48 +00:00
|
|
|
#
|
|
|
|
|
2000-10-26 20:00:34 +00:00
|
|
|
require 5.004;
|
|
|
|
|
|
|
|
use strict;
|
2000-10-20 23:15:57 +00:00
|
|
|
|
2000-09-18 20:54:48 +00:00
|
|
|
use Cwd;
|
2000-10-26 20:00:34 +00:00
|
|
|
use Moz::BuildUtils;
|
2000-10-25 22:29:43 +00:00
|
|
|
use Moz::BuildCore;
|
2000-09-18 20:54:48 +00:00
|
|
|
|
2000-10-26 20:00:34 +00:00
|
|
|
#-------------------------------------------------------------
|
|
|
|
# Where have the build options gone?
|
|
|
|
#
|
|
|
|
# The various build flags have been centralized into one place.
|
|
|
|
# The master list of options is in MozBuildFlags.txt. However,
|
|
|
|
# you should never need to edit that file, or this one.
|
|
|
|
#
|
|
|
|
# To customize what gets built, or where to start the build,
|
|
|
|
# edit the $prefs_file_name file in
|
|
|
|
# System Folder:Preferences:Mozilla build prefs:
|
|
|
|
# Documentation is provided in that file.
|
|
|
|
#-------------------------------------------------------------
|
|
|
|
|
|
|
|
my($prefs_file_name) = "Mozilla pull prefs";
|
|
|
|
|
|
|
|
#-------------------------------------------------------------
|
2000-09-18 20:54:48 +00:00
|
|
|
# hashes to hold build options
|
2000-10-26 20:00:34 +00:00
|
|
|
#-------------------------------------------------------------
|
2000-09-18 20:54:48 +00:00
|
|
|
my(%build);
|
|
|
|
my(%options);
|
2000-10-24 22:49:23 +00:00
|
|
|
my(%filepaths);
|
2000-09-18 20:54:48 +00:00
|
|
|
my(%optiondefines);
|
|
|
|
|
2000-10-26 20:00:34 +00:00
|
|
|
# Hash of input files for this build. Eventually, there will be
|
|
|
|
# input files for manifests, and projects too.
|
2000-10-25 21:43:23 +00:00
|
|
|
my(%inputfiles) = (
|
|
|
|
"buildflags", "MozillaBuildFlags.txt",
|
2000-10-26 20:00:34 +00:00
|
|
|
"checkoutdata", "MozillaCheckoutList.txt",
|
|
|
|
"buildprogress", "",
|
|
|
|
"buildmodule", "MozillaBuildList.pm"
|
2000-10-25 21:43:23 +00:00
|
|
|
);
|
2000-10-26 20:00:34 +00:00
|
|
|
#-------------------------------------------------------------
|
|
|
|
# end build hashes
|
|
|
|
#-------------------------------------------------------------
|
|
|
|
|
|
|
|
# set the build root directory, which is the the dir above mozilla
|
|
|
|
SetupBuildRootDir(":mozilla:build:mac:build_scripts");
|
2000-09-18 20:54:48 +00:00
|
|
|
|
2000-10-26 20:00:34 +00:00
|
|
|
# Set up all the flags on $main::, like DEBUG, CARBON etc.
|
|
|
|
# Override the defaults using the preferences files.
|
|
|
|
SetupDefaultBuildOptions(0, ":mozilla:dist:viewer:");
|
2000-09-18 20:54:48 +00:00
|
|
|
|
|
|
|
my($do_checkout) = 1;
|
|
|
|
my($do_build) = 0;
|
|
|
|
|
2000-10-26 20:00:34 +00:00
|
|
|
RunBuild($do_checkout, $do_build, \%inputfiles, $prefs_file_name);
|