1999-03-25 20:36:51 +00:00
|
|
|
|
#!perl -w
|
1998-06-11 03:58:24 +00:00
|
|
|
|
package NGLayoutBuildList;
|
|
|
|
|
|
|
|
|
|
require 5.004;
|
|
|
|
|
require Exporter;
|
|
|
|
|
|
|
|
|
|
use strict;
|
1998-06-16 21:44:03 +00:00
|
|
|
|
use vars qw( @ISA @EXPORT );
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
1998-06-16 21:44:03 +00:00
|
|
|
|
# perl includes
|
1998-06-11 03:58:24 +00:00
|
|
|
|
use Mac::StandardFile;
|
1998-06-27 01:26:41 +00:00
|
|
|
|
use Mac::Processes;
|
1999-03-25 04:00:56 +00:00
|
|
|
|
use Mac::Events;
|
1999-05-26 01:38:36 +00:00
|
|
|
|
use Mac::Files;
|
1998-06-11 03:58:24 +00:00
|
|
|
|
use Cwd;
|
1998-06-16 21:44:03 +00:00
|
|
|
|
use File::Path;
|
1999-04-23 16:13:15 +00:00
|
|
|
|
use File::Copy;
|
1998-06-16 21:44:03 +00:00
|
|
|
|
|
|
|
|
|
# homegrown
|
1998-06-11 03:58:24 +00:00
|
|
|
|
use Moz;
|
1998-06-16 21:44:03 +00:00
|
|
|
|
use MacCVS;
|
1998-12-13 07:11:44 +00:00
|
|
|
|
use MANIFESTO;
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
@ISA = qw(Exporter);
|
1999-07-14 21:16:05 +00:00
|
|
|
|
@EXPORT = qw(Checkout BuildDist BuildProjects BuildCommonProjects BuildLayoutProjects BuildOneProject);
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
|
|
|
|
# NGLayoutBuildList builds the nglayout project
|
|
|
|
|
# it is configured by setting the following variables in the caller:
|
|
|
|
|
# Usage:
|
|
|
|
|
# caller variables that affect behaviour:
|
|
|
|
|
# DEBUG : 1 if we are building a debug version
|
|
|
|
|
# 3-part build process: checkout, dist, and build_projects
|
1998-06-16 21:44:03 +00:00
|
|
|
|
# Hack alert:
|
|
|
|
|
# NGLayout defines are located in :mozilla:config:mac:NGLayoutConfigInclude.h
|
|
|
|
|
# An alias "MacConfigInclude.h" to this file is created inside dist:config
|
|
|
|
|
# Note that the name of alias is different than the name of the file. This
|
|
|
|
|
# is to trick CW into including NGLayout defines
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Utility routines
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
|
|
|
|
# pickWithMemoryFile stores the information about the user pick inside
|
|
|
|
|
# the file $session_storage
|
|
|
|
|
sub _pickWithMemoryFile($)
|
|
|
|
|
{
|
|
|
|
|
my ($sessionStorage) = @_;
|
|
|
|
|
my $cvsfile;
|
|
|
|
|
|
|
|
|
|
if (( -e $sessionStorage) &&
|
|
|
|
|
open( SESSIONFILE, $sessionStorage ))
|
|
|
|
|
{
|
|
|
|
|
# Read in the path if available
|
|
|
|
|
$cvsfile = <SESSIONFILE>;
|
|
|
|
|
chomp $cvsfile;
|
|
|
|
|
close SESSIONFILE;
|
|
|
|
|
if ( ! -e $cvsfile )
|
|
|
|
|
{
|
|
|
|
|
print STDERR "$cvsfile has disappeared\n";
|
|
|
|
|
undef $cvsfile;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
unless (defined ($cvsfile))
|
|
|
|
|
{
|
1999-03-25 04:00:56 +00:00
|
|
|
|
# make sure that MacPerl is a front process
|
|
|
|
|
ActivateApplication('McPL');
|
|
|
|
|
MacPerl::Answer("Could not find your MacCVS session file. Please choose one", "OK");
|
|
|
|
|
|
|
|
|
|
# prompt user for the file name, and store it
|
1998-06-11 03:58:24 +00:00
|
|
|
|
my $macFile = StandardGetFile( 0, "McvD");
|
|
|
|
|
if ( $macFile->sfGood() )
|
|
|
|
|
{
|
|
|
|
|
$cvsfile = $macFile->sfFile();
|
|
|
|
|
# save the choice if we can
|
|
|
|
|
if ( open (SESSIONFILE, ">" . $sessionStorage))
|
|
|
|
|
{
|
|
|
|
|
printf SESSIONFILE $cvsfile, "\n";
|
|
|
|
|
close SESSIONFILE;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
print STDERR "Could not open storage file\n";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return $cvsfile;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# assert that we are in the correct directory for the build
|
|
|
|
|
sub _assertRightDirectory()
|
|
|
|
|
{
|
|
|
|
|
unless (-e ":mozilla")
|
|
|
|
|
{
|
|
|
|
|
my($dir) = cwd();
|
|
|
|
|
print STDERR "NGLayoutBuildList called from incorrect directory: $dir";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
1998-06-16 21:44:03 +00:00
|
|
|
|
sub _getDistDirectory()
|
|
|
|
|
{
|
1998-06-27 01:26:41 +00:00
|
|
|
|
return $main::DEBUG ? ":mozilla:dist:viewer_debug:" : ":mozilla:dist:viewer:";
|
1998-06-16 21:44:03 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-06-03 20:32:50 +00:00
|
|
|
|
sub BuildIDLProject($$)
|
|
|
|
|
{
|
|
|
|
|
my ($project_path, $module_name) = @_;
|
|
|
|
|
BuildOneProject($project_path, "headers", "", 0, 0, 0);
|
|
|
|
|
BuildOneProject($project_path, $module_name.".xpt", "", 1, 0, 1);
|
|
|
|
|
}
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
#--------------------------------------------------------------------------------------------------
|
|
|
|
|
# Support for BUILD_ROOT
|
|
|
|
|
#
|
|
|
|
|
# These underscore versions of functions in moz.pm check their first parameter to see if it is
|
|
|
|
|
# a path whose initial string matches the BUILD_ROOT string. If so, the original function in moz.pm
|
|
|
|
|
# is called with the same parameter list.
|
|
|
|
|
#--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub _InstallFromManifest($;$$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
&InstallFromManifest;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub _InstallResources($;$;$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
&InstallResources;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub _MakeAlias($$;$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
if ($_[2]) { print ("Making alias for $_[0]"); }
|
|
|
|
|
&MakeAlias;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub _BuildProject($;$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
&BuildProject;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub _BuildProjectClean($;$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
&BuildProjectClean;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub _copy($$)
|
|
|
|
|
{
|
|
|
|
|
if (!defined($main::BUILD_ROOT) || ($_[0] =~ m/^$main::BUILD_ROOT.+/))
|
|
|
|
|
{
|
|
|
|
|
print( "Copying $_[0] to $_[1]\n" );
|
|
|
|
|
©
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1999-05-10 23:01:39 +00:00
|
|
|
|
#// Check out everything
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1998-06-11 03:58:24 +00:00
|
|
|
|
sub Checkout()
|
|
|
|
|
{
|
1999-05-20 03:34:01 +00:00
|
|
|
|
unless ( $main::pull{all} || $main::pull{runtime} ) { return;}
|
|
|
|
|
|
1999-03-25 04:00:56 +00:00
|
|
|
|
# give application activation a chance to happen
|
|
|
|
|
WaitNextEvent();
|
|
|
|
|
WaitNextEvent();
|
|
|
|
|
WaitNextEvent();
|
|
|
|
|
|
1998-06-11 03:58:24 +00:00
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
my($cvsfile) = _pickWithMemoryFile("::nglayout.cvsloc");
|
|
|
|
|
my($session) = MacCVS->new( $cvsfile );
|
|
|
|
|
unless (defined($session)) { die "Checkout aborted. Cannot create session file: $session" }
|
1998-07-29 21:03:47 +00:00
|
|
|
|
|
1999-03-25 04:00:56 +00:00
|
|
|
|
# activate MacCVS
|
|
|
|
|
ActivateApplication('Mcvs');
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//
|
|
|
|
|
#// Checkout commands
|
|
|
|
|
#//
|
1998-10-23 00:22:23 +00:00
|
|
|
|
if ($main::pull{all})
|
1998-06-11 03:58:24 +00:00
|
|
|
|
{
|
1999-01-21 02:26:40 +00:00
|
|
|
|
$session->checkout("SeaMonkeyEditor") || die "checkout failure";
|
1999-01-20 00:36:13 +00:00
|
|
|
|
|
1998-11-30 22:15:00 +00:00
|
|
|
|
#// beard: additional libraries needed to make shared libraries link.
|
|
|
|
|
#//$session->checkout("mozilla/lib/mac/PowerPlant") || die "checkout failure";
|
|
|
|
|
#//$session->checkout("mozilla/lib/xlate") || die "checkout failure";
|
1999-05-20 03:34:01 +00:00
|
|
|
|
} elsif ($main::pull{runtime}) {
|
|
|
|
|
$session->checkout("mozilla/build") || die "checkout failure";
|
1999-07-01 19:49:35 +00:00
|
|
|
|
$session->checkout("mozilla/lib/mac/InterfaceLib") || die "checkout failure";
|
1999-05-20 03:34:01 +00:00
|
|
|
|
$session->checkout("mozilla/config") || die "checkout failure";
|
|
|
|
|
$session->checkout("mozilla/lib/mac/NSStdLib") || die "checkout failure";
|
|
|
|
|
$session->checkout("mozilla/lib/mac/NSRuntime") || die "checkout failure";
|
|
|
|
|
$session->checkout("mozilla/lib/mac/MoreFiles") || die "checkout failure";
|
|
|
|
|
$session->checkout("mozilla/lib/mac/MacMemoryAllocator") || die "checkout failure";
|
|
|
|
|
$session->checkout("mozilla/nsprpub") || die "checkout failure";
|
1998-10-29 11:12:59 +00:00
|
|
|
|
}
|
1998-06-11 03:58:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-05-10 23:01:39 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Remove all files from a tree, leaving directories intact (except "CVS").
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub EmptyTree($)
|
|
|
|
|
{
|
|
|
|
|
my ($root) = @_;
|
|
|
|
|
#print "EmptyTree($root)\n";
|
|
|
|
|
opendir(DIR, $root);
|
|
|
|
|
my $sub;
|
|
|
|
|
foreach $sub (readdir(DIR))
|
|
|
|
|
{
|
|
|
|
|
my $fullpathname = $root.$sub; # -f, -d only work on full paths
|
1999-05-26 01:38:36 +00:00
|
|
|
|
|
|
|
|
|
# Don't call empty tree for the alias of a directory.
|
|
|
|
|
# -d returns true for the alias of a directory, false for a broken alias)
|
|
|
|
|
|
|
|
|
|
if (-d $fullpathname)
|
1999-05-10 23:01:39 +00:00
|
|
|
|
{
|
1999-05-26 01:38:36 +00:00
|
|
|
|
if (-l $fullpathname)
|
|
|
|
|
{
|
|
|
|
|
print "<22><><EFBFBD> $fullpathname is an alias to a directory. Not emptying!\n";
|
|
|
|
|
next;
|
|
|
|
|
}
|
1999-05-10 23:01:39 +00:00
|
|
|
|
EmptyTree($fullpathname.":");
|
|
|
|
|
if ($sub eq "CVS")
|
|
|
|
|
{
|
|
|
|
|
#print "rmdir $fullpathname\n";
|
|
|
|
|
rmdir $fullpathname;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
#print "\tunlink $fullpathname\n";
|
|
|
|
|
my $cnt = unlink $fullpathname; # this is perlspeak for deleting a file.
|
|
|
|
|
if ($cnt ne 1)
|
|
|
|
|
{
|
|
|
|
|
print "Failed to delete $fullpathname";
|
|
|
|
|
die;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
closedir(DIR);
|
|
|
|
|
}
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1999-05-20 03:34:01 +00:00
|
|
|
|
#// Build the runtime 'dist' directories
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1999-05-20 03:34:01 +00:00
|
|
|
|
sub BuildRuntimeDist()
|
1998-06-11 03:58:24 +00:00
|
|
|
|
{
|
1999-05-20 03:34:01 +00:00
|
|
|
|
unless ( $main::build{dist} || $main::build{dist_runtime} ) { return;}
|
1998-06-11 03:58:24 +00:00
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
1999-05-10 23:01:39 +00:00
|
|
|
|
my $distdirectory = ":mozilla:dist"; # the parent directory in dist, including all the headers
|
1998-06-27 01:26:41 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#MAC_COMMON
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:build:mac:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
|
_InstallFromManifest(":mozilla:lib:mac:NSRuntime:include:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
|
_InstallFromManifest(":mozilla:lib:mac:NSStdLib:include:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
|
_InstallFromManifest(":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
|
_InstallFromManifest(":mozilla:lib:mac:MoreFiles:MANIFEST", "$distdirectory:mac:common:morefiles:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#INCLUDE
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:config:mac:MANIFEST", "$distdirectory:config:");
|
|
|
|
|
_InstallFromManifest(":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:");
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
|
|
|
|
#NSPR
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:");
|
|
|
|
|
_InstallFromManifest(":mozilla:nsprpub:pr:src:md:mac:MANIFEST", "$distdirectory:nspr:mac:");
|
|
|
|
|
_InstallFromManifest(":mozilla:nsprpub:lib:ds:MANIFEST", "$distdirectory:nspr:");
|
|
|
|
|
_InstallFromManifest(":mozilla:nsprpub:lib:libc:include:MANIFEST", "$distdirectory:nspr:");
|
|
|
|
|
_InstallFromManifest(":mozilla:nsprpub:lib:msgc:include:MANIFEST", "$distdirectory:nspr:");
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
|
|
|
|
print("--- Runtime Dist export complete ----\n")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build the client 'dist' directories
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildClientDist()
|
|
|
|
|
{
|
|
|
|
|
unless ( $main::build{dist} ) { return;}
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
my $distdirectory = ":mozilla:dist"; # the parent directory in dist, including all the headers
|
1999-06-02 02:05:57 +00:00
|
|
|
|
my $dist_dir = _getDistDirectory(); # the subdirectory with the libs and executable.
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:lib:mac:Misc:MANIFEST", "$distdirectory:mac:common:");
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
|
|
|
|
#INCLUDE
|
1999-05-07 21:22:12 +00:00
|
|
|
|
|
|
|
|
|
#// To get out defines in all the project, dummy alias NGLayoutConfigInclude.h into MacConfigInclude.h
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:config:mac:NGLayoutConfigInclude.h", ":mozilla:dist:config:MacConfigInclude.h");
|
1999-05-07 21:22:12 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:include:MANIFEST", "$distdirectory:include:");
|
|
|
|
|
_InstallFromManifest(":mozilla:cmd:macfe:pch:MANIFEST", "$distdirectory:include:");
|
|
|
|
|
_InstallFromManifest(":mozilla:cmd:macfe:utility:MANIFEST", "$distdirectory:include:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-02-01 04:41:18 +00:00
|
|
|
|
#INTL
|
1999-05-17 19:10:59 +00:00
|
|
|
|
#CHARDET
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:chardet:public:MANIFEST", "$distdirectory:chardet");
|
1999-05-17 19:10:59 +00:00
|
|
|
|
|
1999-02-17 15:27:16 +00:00
|
|
|
|
#UCONV
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:public:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvlatin:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvja:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvja2:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvtw:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvtw2:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvcn:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
_InstallFromManifest(":mozilla:intl:uconv:ucvko:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
# _InstallFromManifest(":mozilla:intl:uconv:ucvth:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
|
# _InstallFromManifest(":mozilla:intl:uconv:ucvvt:MANIFEST", "$distdirectory:uconv:");
|
1999-01-30 16:59:17 +00:00
|
|
|
|
|
1999-02-17 15:27:16 +00:00
|
|
|
|
|
|
|
|
|
#UNICHARUTIL
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:unicharutil:public:MANIFEST", "$distdirectory:unicharutil");
|
1999-02-17 15:27:16 +00:00
|
|
|
|
|
|
|
|
|
#LOCALE
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:locale:public:MANIFEST", "$distdirectory:locale:");
|
1999-08-02 02:59:56 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:locale:idl:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-02-01 04:41:18 +00:00
|
|
|
|
|
1999-02-17 15:27:16 +00:00
|
|
|
|
#LWBRK
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:lwbrk:public:MANIFEST", "$distdirectory:lwbrk:");
|
1999-02-17 15:27:16 +00:00
|
|
|
|
|
1999-01-30 16:59:17 +00:00
|
|
|
|
#STRRES
|
1999-07-23 02:45:28 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:intl:strres:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-01-22 01:30:07 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#JPEG
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:jpeg:MANIFEST", "$distdirectory:jpeg:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#LIBREG
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", "$distdirectory:libreg:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#XPCOM
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:base:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:io:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:ds:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-05-26 01:38:36 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:base:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:components:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:ds:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:io:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:threads:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:proxy:public:MANIFEST", "$distdirectory:xpcom:");
|
1999-05-26 01:38:36 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:reflect:xptinfo:public:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:reflect:xptcall:public:MANIFEST", "$distdirectory:xpcom:");
|
1999-05-26 01:38:36 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpcom:typelib:xpt:public:MANIFEST", "$distdirectory:xpcom:");
|
1999-02-24 17:36:37 +00:00
|
|
|
|
|
1999-06-03 01:06:14 +00:00
|
|
|
|
#PREFS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libpref:src:MANIFEST_PREFS", $dist_dir."Components:", 1);
|
1999-06-03 01:06:14 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#ZLIB
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:zlib:src:MANIFEST", "$distdirectory:zlib:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-03-25 20:13:00 +00:00
|
|
|
|
#LIBJAR
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libjar:MANIFEST", "$distdirectory:libjar:");
|
1999-06-23 06:23:52 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libjar:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-03-25 20:13:00 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#LIBUTIL
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libutil:public:MANIFEST", "$distdirectory:libutil:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#SUN_JAVA
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:sun-java:stubs:include:MANIFEST", "$distdirectory:sun-java:");
|
|
|
|
|
_InstallFromManifest(":mozilla:sun-java:stubs:macjri:MANIFEST", "$distdirectory:sun-java:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#NAV_JAVA
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:nav-java:stubs:include:MANIFEST", "$distdirectory:nav-java:");
|
|
|
|
|
_InstallFromManifest(":mozilla:nav-java:stubs:macjri:MANIFEST", "$distdirectory:nav-java:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#JS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:js:src:MANIFEST", "$distdirectory:js:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-01-26 01:14:00 +00:00
|
|
|
|
#LIVECONNECT
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:js:src:liveconnect:MANIFEST", "$distdirectory:liveconnect:");
|
1999-02-04 00:44:34 +00:00
|
|
|
|
|
1999-05-26 01:38:36 +00:00
|
|
|
|
#XPCONNECT
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:js:src:xpconnect:idl:MANIFEST", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:js:src:xpconnect:public:MANIFEST", "$distdirectory:xpconnect:");
|
1999-05-26 01:38:36 +00:00
|
|
|
|
|
1999-02-04 00:44:34 +00:00
|
|
|
|
#CAPS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:caps:include:MANIFEST", "$distdirectory:caps:");
|
1999-07-16 20:30:00 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:caps:idl:MANIFEST", "$distdirectory:idl:");
|
1999-01-26 01:14:00 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#SECURITY_freenav
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:security:freenav:MANIFEST", "$distdirectory:security:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#LIBPREF
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libpref:public:MANIFEST", "$distdirectory:libpref:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-04-20 00:04:46 +00:00
|
|
|
|
#PROFILE
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:profile:public:MANIFEST", "$distdirectory:profile:");
|
1999-07-23 03:53:28 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:profile:idlservices:MANIFEST", "$distdirectory:idl:");
|
1999-04-15 22:45:44 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#LIBIMAGE
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:libimg:png:MANIFEST", "$distdirectory:libimg:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:libimg:src:MANIFEST", "$distdirectory:libimg:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:libimg:public:MANIFEST", "$distdirectory:libimg:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:libimg:public_com:MANIFEST", "$distdirectory:libimg:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#PLUGIN
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:modules:plugin:nglsrc:MANIFEST", "$distdirectory:plugin:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:plugin:public:MANIFEST", "$distdirectory:plugin:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:plugin:src:MANIFEST", "$distdirectory:plugin:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:oji:src:MANIFEST", "$distdirectory:oji:");
|
|
|
|
|
_InstallFromManifest(":mozilla:modules:oji:public:MANIFEST", "$distdirectory:oji:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-03-02 19:02:28 +00:00
|
|
|
|
#DBM
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:dbm:include:MANIFEST", "$distdirectory:dbm:");
|
1999-03-02 19:02:28 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#LAYERS (IS THIS STILL NEEDED)
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:lib:liblayer:include:MANIFEST", "$distdirectory:layers:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-07-14 21:16:05 +00:00
|
|
|
|
if ( $main::NECKO )
|
|
|
|
|
{
|
|
|
|
|
#NETWERK
|
|
|
|
|
_InstallFromManifest(":mozilla:netwerk:base:public:MANIFEST", "$distdirectory:netwerk:");
|
|
|
|
|
_InstallFromManifest(":mozilla:netwerk:util:public:MANIFEST", "$distdirectory:netwerk:");
|
1999-07-24 20:52:04 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:netwerk:base:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-07-14 21:16:05 +00:00
|
|
|
|
} else {
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#NETWORK
|
1999-07-14 21:16:05 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:network:public:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:cache:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:client:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:cnvts:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:cstream:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:main:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:mimetype:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:util:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:about:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:certld:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:dataurl:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:file:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:ftp:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:gopher:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:http:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:js:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:mailbox:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:marimba:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:nntp:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:pop3:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:remote:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:smtp:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:protocol:sockstub:MANIFEST", "$distdirectory:network:");
|
|
|
|
|
_InstallFromManifest(":mozilla:network:module:MANIFEST", "$distdirectory:network:module");
|
|
|
|
|
}
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1999-07-23 05:17:15 +00:00
|
|
|
|
#EXTENSIONS
|
1999-07-23 06:54:03 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:extensions:cookie:MANIFEST", "$distdirectory:cookie:");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:extensions:wallet:public:MANIFEST", "$distdirectory:wallet:");
|
1999-03-27 02:09:31 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#WEBSHELL
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:webshell:public:MANIFEST", "$distdirectory:webshell:");
|
|
|
|
|
_InstallFromManifest(":mozilla:webshell:tests:viewer:public:MANIFEST", "$distdirectory:webshell:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#LAYOUT
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:layout:build:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:base:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:content:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:document:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:document:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:style:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:style:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:base:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:forms:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:html:table:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:base:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:events:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:events:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:xml:document:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
|
_InstallFromManifest(":mozilla:layout:xml:content:public:MANIFEST", "$distdirectory:layout:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#GFX
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:gfx:public:MANIFEST", "$distdirectory:gfx:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#VIEW
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:view:public:MANIFEST", "$distdirectory:view:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#DOM
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:base:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:coreDom:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:coreEvents:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:events:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:range:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:html:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:public:css:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:src:jsurl:MANIFEST", "$distdirectory:dom:");
|
|
|
|
|
_InstallFromManifest(":mozilla:dom:src:base:MANIFEST", "$distdirectory:dom:");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
|
|
|
|
#HTMLPARSER
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:htmlparser:src:MANIFEST", "$distdirectory:htmlparser:");
|
1999-02-27 09:42:52 +00:00
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
#EXPAT
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:expat:xmlparse:MANIFEST", "$distdirectory:expat:");
|
1999-02-27 09:42:52 +00:00
|
|
|
|
|
1999-04-01 18:39:35 +00:00
|
|
|
|
#WIDGET
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:widget:public:MANIFEST", "$distdirectory:widget:");
|
|
|
|
|
_InstallFromManifest(":mozilla:widget:public:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:widget:src:mac:MANIFEST", "$distdirectory:widget:");
|
1999-04-01 18:39:35 +00:00
|
|
|
|
|
1998-12-02 00:21:44 +00:00
|
|
|
|
#RDF
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:rdf:base:idl:MANIFEST", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:rdf:base:public:MANIFEST", "$distdirectory:rdf:");
|
|
|
|
|
_InstallFromManifest(":mozilla:rdf:util:public:MANIFEST", "$distdirectory:rdf:");
|
|
|
|
|
_InstallFromManifest(":mozilla:rdf:content:public:MANIFEST", "$distdirectory:rdf:");
|
|
|
|
|
_InstallFromManifest(":mozilla:rdf:datasource:public:MANIFEST", "$distdirectory:rdf:");
|
|
|
|
|
_InstallFromManifest(":mozilla:rdf:build:MANIFEST", "$distdirectory:rdf:");
|
1999-04-01 02:18:27 +00:00
|
|
|
|
|
|
|
|
|
#BRPROF
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:rdf:brprof:public:MANIFEST", "$distdirectory:brprof:");
|
1999-04-02 02:16:45 +00:00
|
|
|
|
|
|
|
|
|
#CHROME
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:rdf:chrome:public:MANIFEST", "$distdirectory:chrome:");
|
1999-04-02 02:16:45 +00:00
|
|
|
|
|
1998-11-29 23:52:10 +00:00
|
|
|
|
#EDITOR
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:editor:idl:MANIFEST", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:editor:public:MANIFEST", "$distdirectory:editor:");
|
|
|
|
|
_InstallFromManifest(":mozilla:editor:txmgr:public:MANIFEST", "$distdirectory:editor:txmgr");
|
|
|
|
|
_InstallFromManifest(":mozilla:editor:txtsvc:public:MANIFEST", "$distdirectory:editor:txtsvc");
|
1999-04-20 01:03:20 +00:00
|
|
|
|
|
1999-01-20 00:36:13 +00:00
|
|
|
|
#SILENTDL
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:silentdl:MANIFEST", "$distdirectory:silentdl:");
|
1998-11-29 23:52:10 +00:00
|
|
|
|
|
1999-06-03 22:14:57 +00:00
|
|
|
|
#XPINSTALL (the one and only!)
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpinstall:public:MANIFEST", "$distdirectory:xpinstall:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpinstall:public:MANIFEST_PREFS", $dist_dir."Components:", 1);
|
1999-06-10 20:02:53 +00:00
|
|
|
|
|
|
|
|
|
#FULL CIRCLE
|
|
|
|
|
if ($main::MOZ_FULLCIRCLE)
|
|
|
|
|
{
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
|
1999-01-12 20:49:54 +00:00
|
|
|
|
|
|
|
|
|
if ($main::DEBUG)
|
|
|
|
|
{
|
1999-06-23 04:51:45 +00:00
|
|
|
|
#_InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer_debug:");
|
1999-01-12 20:49:54 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
1999-06-23 04:51:45 +00:00
|
|
|
|
#_InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer:");
|
|
|
|
|
_InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
|
1999-01-12 20:49:54 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
1999-04-22 03:05:24 +00:00
|
|
|
|
|
|
|
|
|
# XPFE COMPONENTS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:public:MANIFEST", "$distdirectory:xpfe:components");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-03 20:32:50 +00:00
|
|
|
|
|
1999-04-22 03:05:24 +00:00
|
|
|
|
# find
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:find:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-03 20:32:50 +00:00
|
|
|
|
|
1999-06-12 02:32:12 +00:00
|
|
|
|
# bookmarks
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:bookmarks:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-12 02:32:12 +00:00
|
|
|
|
|
1999-05-18 04:10:42 +00:00
|
|
|
|
# history
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:history:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-07 21:17:23 +00:00
|
|
|
|
|
|
|
|
|
# related
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:related:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-03 20:32:50 +00:00
|
|
|
|
|
|
|
|
|
# prefwindow
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:prefwindow:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-03 20:32:50 +00:00
|
|
|
|
|
1999-05-13 23:11:41 +00:00
|
|
|
|
# sample
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:sample:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-05-13 23:11:41 +00:00
|
|
|
|
# ucth
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:ucth:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-05-13 23:11:41 +00:00
|
|
|
|
# xfer
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:components:xfer:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-04-22 03:05:24 +00:00
|
|
|
|
|
1999-02-03 18:14:31 +00:00
|
|
|
|
# XPAPPS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:AppCores:public:MANIFEST", "$distdirectory:xpfe:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:appshell:public:MANIFEST", "$distdirectory:xpfe:");
|
|
|
|
|
_InstallFromManifest(":mozilla:xpfe:appshell:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-02-03 18:14:31 +00:00
|
|
|
|
|
1999-04-15 20:07:37 +00:00
|
|
|
|
# MAILNEWS
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:public:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:public:MANIFEST_IDL", "$distdirectory:idl:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:src:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:util:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:search:public:MANIFEST", "$distdirectory:mailnews:");
|
1999-07-02 02:35:11 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:base:search:public:MANIFEST_IDL", "$distdirectory:idl:");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:compose:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:compose:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:db:mdb:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:db:mork:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:db:msgdb:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:db:msgdb:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:local:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:local:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:local:src:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:imap:public:MANIFEST", "$distdirectory:mailnews:");
|
1999-07-23 16:38:02 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:imap:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:imap:src:MANIFEST", "$distdirectory:mailnews:");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:mime:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:mime:src:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:mime:emitters:src:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:news:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:news:build:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:addrbook:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
|
_InstallFromManifest(":mozilla:mailnews:addrbook:build:MANIFEST", "$distdirectory:mailnews:");
|
1999-06-03 22:14:57 +00:00
|
|
|
|
|
|
|
|
|
print("--- Client Dist export complete ----\n")
|
1999-05-20 03:34:01 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build the 'dist' directory
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildDist()
|
|
|
|
|
{
|
|
|
|
|
unless ( $main::build{dist} || $main::build{dist_runtime} ) { return;}
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# activate MacPerl
|
|
|
|
|
ActivateApplication('McPL');
|
|
|
|
|
|
|
|
|
|
my $distdirectory = ":mozilla:dist"; # the parent directory in dist, including all the headers
|
|
|
|
|
my $dist_dir = _getDistDirectory(); # the subdirectory with the libs and executable.
|
|
|
|
|
if ($main::CLOBBER_DIST_ALL)
|
|
|
|
|
{
|
|
|
|
|
print "Clobbering ALL files inside :mozilla:dist:\n";
|
|
|
|
|
EmptyTree($distdirectory.":");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if ($main::CLOBBER_DIST_LIBS)
|
|
|
|
|
{
|
|
|
|
|
print "Clobbering library aliases and executables inside ".$dist_dir."\n";
|
|
|
|
|
EmptyTree($dist_dir);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# we really do not need all these paths, but many client projects include them
|
|
|
|
|
mkpath([ ":mozilla:dist:", ":mozilla:dist:client:", ":mozilla:dist:client_debug:", ":mozilla:dist:client_stubs:" ]);
|
|
|
|
|
mkpath([ ":mozilla:dist:viewer:", ":mozilla:dist:viewer_debug:" ]);
|
1999-07-02 01:07:55 +00:00
|
|
|
|
|
|
|
|
|
#make default plugins folder so that apprunner won't go looking for 3.0 and 4.0 plugins.
|
1999-07-14 22:19:56 +00:00
|
|
|
|
mkpath([ ":mozilla:dist:viewer:Plugins", ":mozilla:dist:viewer_debug:Plugins"]);
|
|
|
|
|
mkpath([ ":mozilla:dist:client:Plugins", ":mozilla:dist:client_debug:Plugins"]);
|
1999-07-02 01:07:55 +00:00
|
|
|
|
|
1999-05-20 03:34:01 +00:00
|
|
|
|
if ($main::MOZ_FULLCIRCLE)
|
|
|
|
|
{
|
|
|
|
|
mkpath([ $dist_dir."TalkBack"]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BuildRuntimeDist();
|
|
|
|
|
BuildClientDist();
|
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- Dist export complete ----\n")
|
1998-06-11 03:58:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build stub projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildStubs()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
unless( $main::build{stubs} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
#//
|
|
|
|
|
#// Clean projects
|
|
|
|
|
#//
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
|
1999-05-07 20:18:26 +00:00
|
|
|
|
|
|
|
|
|
print("--- Stubs projects complete ----\n")
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build one project, and make the alias. Parameters
|
|
|
|
|
#// are project path, target name, make shlb alias (boolean), make xSYM alias (boolean)
|
|
|
|
|
#//
|
|
|
|
|
#// Note that this routine assumes that the target name and the shared libary name
|
|
|
|
|
#// are the same.
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
sub BuildOneProject($$$$$$)
|
1998-12-16 03:31:18 +00:00
|
|
|
|
{
|
1999-03-05 05:09:04 +00:00
|
|
|
|
my ($project_path, $target_name, $toc_file, $alias_shlb, $alias_xSYM, $component) = @_;
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
unless ($project_path =~ m/^$main::BUILD_ROOT.+/) { return; }
|
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
1999-05-07 21:22:12 +00:00
|
|
|
|
|
|
|
|
|
# Put libraries in "Essential Files" folder, Components in "Components" folder
|
|
|
|
|
my($component_dir) = $component ? "Components:" : "Essential Files:";
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
|
|
|
|
my($project_dir) = $project_path;
|
|
|
|
|
$project_dir =~ s/:[^:]+$/:/; # chop off leaf name
|
|
|
|
|
|
1998-12-17 01:24:37 +00:00
|
|
|
|
if ($main::CLOBBER_LIBS)
|
|
|
|
|
{
|
|
|
|
|
unlink "$project_dir$target_name"; # it's OK if these fail
|
|
|
|
|
unlink "$project_dir$target_name.xSYM";
|
|
|
|
|
}
|
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
if ($toc_file ne "")
|
|
|
|
|
{
|
|
|
|
|
ReconcileProject("$project_path", "$project_dir$toc_file");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BuildProject($project_path, $target_name);
|
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
$alias_shlb ? MakeAlias("$project_dir$target_name", "$dist_dir$component_dir") : 0;
|
1999-05-07 21:22:12 +00:00
|
|
|
|
$alias_xSYM ? MakeAlias("$project_dir$target_name.xSYM", "$dist_dir$component_dir") : 0;
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build IDL projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildIDLProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{idl} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
1999-07-23 00:12:05 +00:00
|
|
|
|
if ( $main::build{xpidl} )
|
|
|
|
|
{
|
|
|
|
|
#// beard: build the IDL compiler itself.
|
1999-07-27 02:07:16 +00:00
|
|
|
|
BuildProject(":mozilla:xpcom:typelib:xpidl:macbuild:xpidl.mcp", "build all");
|
1999-07-23 00:12:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
BuildIDLProject(":mozilla:xpcom:macbuild:XPCOMIDL.mcp", "xpcom");
|
1999-07-14 21:16:05 +00:00
|
|
|
|
|
|
|
|
|
if ( $main::NECKO )
|
|
|
|
|
{
|
|
|
|
|
BuildIDLProject(":mozilla:netwerk:macbuild:netwerkIDL.mcp","netwerk");
|
|
|
|
|
|
|
|
|
|
# protocols
|
|
|
|
|
BuildIDLProject(":mozilla:netwerk:protocol:about:macbuild:aboutIDL.mcp","about");
|
|
|
|
|
BuildIDLProject(":mozilla:netwerk:protocol:file:macbuild:fileIDL.mcp","file");
|
|
|
|
|
BuildIDLProject(":mozilla:netwerk:protocol:ftp:macbuild:ftpIDL.mcp","ftp");
|
|
|
|
|
BuildIDLProject(":mozilla:netwerk:protocol:http:macbuild:httpIDL.mcp","http");
|
1999-07-25 01:46:09 +00:00
|
|
|
|
|
|
|
|
|
# mime service
|
|
|
|
|
# Just a placeholder as mime.xpt is currently part of the netwerkIDL.mcp build
|
1999-07-14 21:16:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
BuildIDLProject(":mozilla:modules:libpref:macbuild:libprefIDL.mcp", "libpref");
|
1999-06-23 06:23:52 +00:00
|
|
|
|
BuildIDLProject(":mozilla:modules:libjar:macbuild:libjarIDL.mcp", "libjar");
|
1999-06-10 20:02:53 +00:00
|
|
|
|
BuildIDLProject(":mozilla:js:macbuild:XPConnectIDL.mcp", "xpconnect");
|
|
|
|
|
BuildIDLProject(":mozilla:dom:macbuild:domIDL.mcp", "dom");
|
|
|
|
|
BuildIDLProject(":mozilla:widget:macbuild:widgetIDL.mcp", "widget");
|
1999-06-11 18:56:47 +00:00
|
|
|
|
BuildIDLProject(":mozilla:editor:macbuild:EditorIDL.mcp", "editor");
|
1999-07-23 03:53:28 +00:00
|
|
|
|
BuildIDLProject(":mozilla:profile:macbuild:ProfileServicesIDL.mcp", "profileservices");
|
1999-06-10 20:02:53 +00:00
|
|
|
|
|
|
|
|
|
BuildIDLProject(":mozilla:rdf:macbuild:RDFIDL.mcp", "rdf");
|
1999-06-12 02:32:12 +00:00
|
|
|
|
BuildIDLProject(":mozilla:xpinstall:macbuild:xpinstallIDL.mcp", "xpinstall");
|
1999-07-04 01:38:29 +00:00
|
|
|
|
BuildIDLProject(":mozilla:extensions:wallet:macbuild:walletIDL.mcp","wallet");
|
1999-06-14 02:09:29 +00:00
|
|
|
|
BuildIDLProject(":mozilla:xpfe:components:bookmarks:macbuild:BookmarksIDL.mcp", "bookmarks");
|
1999-06-10 20:02:53 +00:00
|
|
|
|
BuildIDLProject(":mozilla:xpfe:components:history:macbuild:historyIDL.mcp", "history");
|
|
|
|
|
BuildIDLProject(":mozilla:xpfe:components:related:macbuild:RelatedIDL.mcp", "related");
|
|
|
|
|
BuildIDLProject(":mozilla:xpfe:components:prefwindow:macbuild:prefwindowIDL.mcp","prefwindow");
|
|
|
|
|
BuildIDLProject(":mozilla:xpfe:components:macbuild:mozcompsIDL.mcp", "mozcomps");
|
|
|
|
|
|
1999-06-15 05:20:48 +00:00
|
|
|
|
BuildIDLProject(":mozilla:xpfe:appshell:macbuild:appshellIDL.mcp", "appshell");
|
1999-07-23 03:53:28 +00:00
|
|
|
|
|
1999-06-10 20:02:53 +00:00
|
|
|
|
BuildIDLProject(":mozilla:mailnews:base:macbuild:msgCoreIDL.mcp", "mailnews");
|
|
|
|
|
BuildIDLProject(":mozilla:mailnews:compose:macbuild:msgComposeIDL.mcp", "MsgCompose");
|
|
|
|
|
BuildIDLProject(":mozilla:mailnews:local:macbuild:msglocalIDL.mcp", "MsgLocal");
|
|
|
|
|
BuildIDLProject(":mozilla:mailnews:news:macbuild:msgnewsIDL.mcp", "MsgNews");
|
|
|
|
|
BuildIDLProject(":mozilla:mailnews:addrbook:macbuild:msgAddrbookIDL.mcp", "MsgAddrbook");
|
1999-06-14 21:53:34 +00:00
|
|
|
|
BuildIDLProject(":mozilla:mailnews:db:macbuild:msgDBIDL.mcp", "MsgDB");
|
1999-07-13 18:39:46 +00:00
|
|
|
|
BuildIDLProject(":mozilla:mailnews:mime:macbuild:mimeIDL.mcp", "Mime");
|
1999-06-12 01:09:05 +00:00
|
|
|
|
|
1999-07-16 01:17:32 +00:00
|
|
|
|
BuildIDLProject(":mozilla:caps:macbuild:CapsIDL.mcp", "caps");
|
|
|
|
|
|
1999-07-17 02:09:13 +00:00
|
|
|
|
BuildIDLProject(":mozilla:intl:locale:macbuild:nsLocaleIDL.mcp", "nsLocale");
|
1999-07-23 02:45:28 +00:00
|
|
|
|
BuildIDLProject(":mozilla:intl:strres:macbuild:strresIDL.mcp", "nsIStringBundle");
|
1999-07-17 02:09:13 +00:00
|
|
|
|
|
1999-06-12 01:09:05 +00:00
|
|
|
|
print("--- IDL projects complete ----\n")
|
1999-06-10 20:02:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1999-05-20 03:34:01 +00:00
|
|
|
|
#// Build runtime projects
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1999-05-20 03:34:01 +00:00
|
|
|
|
sub BuildRuntimeProjects()
|
1998-06-11 03:58:24 +00:00
|
|
|
|
{
|
1999-05-20 03:34:01 +00:00
|
|
|
|
unless( $main::build{runtime} ) { return; }
|
1998-06-11 03:58:24 +00:00
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
1998-06-16 21:44:03 +00:00
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//
|
|
|
|
|
#// Shared libraries
|
|
|
|
|
#//
|
1998-09-29 17:13:57 +00:00
|
|
|
|
if ( $main::CARBON )
|
|
|
|
|
{
|
1999-04-07 03:11:40 +00:00
|
|
|
|
if ( $main::CARBONLITE ) {
|
1999-07-01 19:49:35 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:InterfaceLib:Interface.mcp", "Carbon Interfaces (Lite)");
|
1999-04-07 03:11:40 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
1999-07-01 19:49:35 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:InterfaceLib:Interface.mcp", "Carbon Interfaces");
|
1999-04-07 03:11:40 +00:00
|
|
|
|
}
|
1998-09-29 17:13:57 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
1999-07-01 19:49:35 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:InterfaceLib:Interface.mcp", "MacOS Interfaces");
|
1998-09-29 17:13:57 +00:00
|
|
|
|
}
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
1999-05-12 03:50:24 +00:00
|
|
|
|
#// for NSRuntime under Carbon, don't use BuildOneProject to alias the shlb or the xsym since the
|
|
|
|
|
#// target names differ from the output names. Make them by hand instead.
|
|
|
|
|
if ( $main::CARBON ) {
|
1999-05-18 02:59:03 +00:00
|
|
|
|
if ($main::PROFILE) {
|
|
|
|
|
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntimeCarbonProfil.shlb", "", 0, 0, 0);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntimeCarbon$D.shlb", "", 0, 0, 0);
|
|
|
|
|
}
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb", ":mozilla:dist:viewer_debug:Essential Files:");
|
1999-05-12 03:50:24 +00:00
|
|
|
|
if ( $main::ALIAS_SYM_FILES ) {
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb.xSYM", ":mozilla:dist:viewer_debug:Essential Files:");
|
1999-05-12 03:50:24 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else {
|
1999-05-18 02:59:03 +00:00
|
|
|
|
if ($main::PROFILE) {
|
1999-05-28 01:54:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntimeProfil.shlb", "", 0, 0, 0);
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb", ":mozilla:dist:viewer_debug:Essential Files:");
|
1999-05-28 01:54:27 +00:00
|
|
|
|
if ( $main::ALIAS_SYM_FILES ) {
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb.xSYM", ":mozilla:dist:viewer_debug:Essential Files:");
|
1999-05-28 01:54:27 +00:00
|
|
|
|
}
|
1999-05-18 02:59:03 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntime$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
}
|
1999-05-12 03:50:24 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles.o");
|
1999-05-12 03:50:24 +00:00
|
|
|
|
|
|
|
|
|
#// for MemAllocator under Carbon, right now we have to use the MSL allocators because sfraser's heap zones
|
|
|
|
|
#// don't exist in Carbon. Just use different targets. Since this is a static library, we don't have to fuss
|
|
|
|
|
#// with the aliases and target name mismatches like we did above.
|
|
|
|
|
if ( $main::CARBON ) {
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocatorCarbon$D.o");
|
1999-05-12 03:50:24 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.o");
|
1999-05-12 03:50:24 +00:00
|
|
|
|
}
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb", "NSPR20.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-05-20 03:34:01 +00:00
|
|
|
|
|
|
|
|
|
print("--- Runtime projects complete ----\n")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build common projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildCommonProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{common} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
|
|
|
|
|
#//
|
|
|
|
|
#// Stub libraries
|
|
|
|
|
#//
|
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
|
1999-02-26 00:48:30 +00:00
|
|
|
|
|
1999-05-20 03:34:01 +00:00
|
|
|
|
#//
|
|
|
|
|
#// Shared libraries
|
|
|
|
|
#//
|
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb", "JPEG.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:libreg:macbuild:libreg.mcp", "libreg$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-23 19:56:57 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb", "xpcom.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-05-29 01:37:55 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:js:macbuild:JavaScript.mcp", "JavaScript$D.shlb", "JavaScript.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-26 00:48:30 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:js:macbuild:LiveConnect.mcp", "LiveConnect$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-26 01:14:00 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb", "zlib.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-04 00:44:34 +00:00
|
|
|
|
|
1999-06-29 02:22:13 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:libjar:macbuild:libjar.mcp", "libjar$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-03-25 20:13:00 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:caps:macbuild:Caps.mcp", "Caps$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-04 00:44:34 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:oji:macbuild:oji.mcp", "oji$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-04-20 00:04:46 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:libpref:macbuild:libpref.mcp", "libpref$D.shlb", "libpref.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
|
1999-05-26 19:15:23 +00:00
|
|
|
|
BuildOneProject(":mozilla:js:macbuild:XPConnect.mcp", "XPConnect$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-27 17:47:41 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:libutil:macbuild:libutil.mcp", "libutil$D.shlb", "libutil.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
|
|
|
|
|
ReconcileProject(":mozilla:modules:libimg:macbuild:png.mcp", ":mozilla:modules:libimg:macbuild:png.toc");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:modules:libimg:macbuild:png.mcp", "png$D.o");
|
1999-05-04 19:28:14 +00:00
|
|
|
|
|
|
|
|
|
BuildOneProject(":mozilla:modules:libimg:macbuild:libimg.mcp", "libimg$D.shlb", "libimg.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
BuildOneProject(":mozilla:modules:libimg:macbuild:gifdecoder.mcp", "gifdecoder$D.shlb", "gifdecoder.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:modules:libimg:macbuild:pngdecoder.mcp", "pngdecoder$D.shlb", "pngdecoder.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:modules:libimg:macbuild:jpgdecoder.mcp", "jpgdecoder$D.shlb", "jpgdecoder.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
1999-07-14 21:16:05 +00:00
|
|
|
|
if ( $main::NECKO )
|
|
|
|
|
{
|
1999-07-24 01:15:41 +00:00
|
|
|
|
BuildOneProject(":mozilla:netwerk:macbuild:netwerk.mcp", "Network$D.shlb", "netwerk.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-14 21:16:05 +00:00
|
|
|
|
|
|
|
|
|
# utils library
|
|
|
|
|
BuildOneProject(":mozilla:netwerk:util:macbuild:netwerkUtil.mcp", "NetworkModular$D.shlb", "netwerkUtil.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
|
|
|
|
|
# protocols
|
1999-07-24 01:15:41 +00:00
|
|
|
|
BuildOneProject(":mozilla:netwerk:protocol:about:macbuild:about.mcp", "about$D.shlb", "about.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:netwerk:protocol:file:macbuild:file.mcp", "file$D.shlb", "file.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:netwerk:protocol:ftp:macbuild:ftp.mcp", "ftp$D.shlb", "ftp.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:netwerk:protocol:http:macbuild:http.mcp", "http$D.shlb", "http.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:netwerk:protocol:resource:macbuild:resource.mcp", "resource$D.shlb", "resource.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-25 01:46:09 +00:00
|
|
|
|
|
|
|
|
|
# mime service
|
1999-07-27 23:17:49 +00:00
|
|
|
|
BuildOneProject(":mozilla:netwerk:mime:macbuild:mime.mcp", "mimetype$D.shlb", "mimetype.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-14 21:16:05 +00:00
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
BuildOneProject(":mozilla:network:macbuild:network.mcp", "NetworkModular$D.shlb", "network.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
}
|
1999-05-04 19:28:14 +00:00
|
|
|
|
|
1999-07-05 01:53:52 +00:00
|
|
|
|
BuildOneProject(":mozilla:profile:macbuild:profile.mcp", "profile$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-23 03:53:28 +00:00
|
|
|
|
BuildOneProject(":mozilla:profile:macbuild:profileservices.mcp", "profileservices$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-05 01:53:52 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
BuildOneProject(":mozilla:extensions:wallet:macbuild:wallet.mcp", "Wallet$D.shlb", "wallet.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-07-04 01:38:29 +00:00
|
|
|
|
BuildOneProject(":mozilla:extensions:wallet:macbuild:walletviewers.mcp", "WalletViewers$D.shlb", "walletviewer.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-05-04 19:28:14 +00:00
|
|
|
|
|
|
|
|
|
BuildOneProject(":mozilla:rdf:brprof:build:brprof.mcp", "BrowsingProfile$D.shlb", "brprof.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:rdf:chrome:build:chrome.mcp", "ChomeRegistry$D.shlb", "chrome.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
|
|
#// XXX moved this TEMPORARILY to layout while we sort out a dependency
|
|
|
|
|
# BuildOneProject(":mozilla:rdf:macbuild:rdf.mcp", "rdf$D.shlb", "rdf.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
|
|
print("--- Common projects complete ----\n")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build international projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildInternationalProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{intl} ) { return; }
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
|
1999-05-17 19:38:11 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:chardet:macbuild:chardet.mcp", "chardet$D.shlb", "chardet.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-05-17 19:10:59 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:uconv.mcp", "uconv$D.shlb", "uconv.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 01:30:07 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvlatin.mcp", "ucvlatin$D.shlb", "uconvlatin.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 01:30:07 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvja.mcp", "ucvja$D.shlb", "ucvja.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-03-17 01:22:06 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvja2.mcp", "ucvja2$D.shlb", "ucvja2.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
#// Have not enabled yet... place holder
|
1999-04-23 23:41:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvtw.mcp", "ucvtw$D.shlb", "ucvtw.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-04-23 23:41:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvtw2.mcp", "ucvtw2$D.shlb", "ucvtw2.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-04-06 21:34:59 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvcn.mcp", "ucvcn$D.shlb", "ucvcn.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-04-23 23:41:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvko.mcp", "ucvko$D.shlb", "ucvko.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
# BuildOneProject(":mozilla:intl:uconv:macbuild:ucvvt.mcp", "ucvvt$D.shlb", "ucvvt.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
# BuildOneProject(":mozilla:intl:uconv:macbuild:ucvth.mcp", "ucvth$D.shlb", "ucvth.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 19:52:25 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:unicharutil:macbuild:unicharutil.mcp", "unicharutil$D.shlb", "unicharutil.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-01 04:41:18 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:locale:macbuild:locale.mcp", "nslocale$D.shlb", "nslocale.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-01 04:41:18 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:lwbrk:macbuild:lwbrk.mcp", "lwbrk$D.shlb", "lwbrk.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-17 15:27:16 +00:00
|
|
|
|
|
1999-03-23 19:57:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:intl:strres:macbuild:strres.mcp", "strres$D.shlb", "strres.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 01:30:07 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- International projects complete ----\n")
|
|
|
|
|
} # intl
|
1999-04-01 02:18:27 +00:00
|
|
|
|
|
1998-06-16 21:44:03 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Make resource aliases for one directory
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildFolderResourceAliases($$)
|
1998-11-02 23:22:26 +00:00
|
|
|
|
{
|
|
|
|
|
my($src_dir, $dest_dir) = @_;
|
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
unless ($src_dir =~ m/^$main::BUILD_ROOT.+/) { return; }
|
|
|
|
|
|
1998-11-02 23:22:26 +00:00
|
|
|
|
# get a list of all the resource files
|
|
|
|
|
opendir(SRCDIR, $src_dir) || die("can't open $src_dir");
|
|
|
|
|
my(@resource_files) = readdir(SRCDIR);
|
|
|
|
|
closedir(SRCDIR);
|
|
|
|
|
|
|
|
|
|
# make aliases for each one into the dest directory
|
1999-04-27 18:26:59 +00:00
|
|
|
|
print("Placing aliases to all files from $src_dir in $dest_dir\n");
|
1999-05-26 01:38:36 +00:00
|
|
|
|
for ( @resource_files )
|
|
|
|
|
{
|
1998-11-02 23:22:26 +00:00
|
|
|
|
next if $_ eq "CVS";
|
1999-05-26 01:38:36 +00:00
|
|
|
|
#print(" Doing $_\n");
|
|
|
|
|
if (-l $src_dir.$_)
|
|
|
|
|
{
|
|
|
|
|
print(" $_ is an alias\n");
|
|
|
|
|
next;
|
|
|
|
|
}
|
1998-11-02 23:22:26 +00:00
|
|
|
|
my($file_name) = $src_dir . $_;
|
|
|
|
|
MakeAlias($file_name, $dest_dir);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-12-16 03:31:18 +00:00
|
|
|
|
#// Make resource aliases
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-06-16 21:44:03 +00:00
|
|
|
|
|
1999-04-15 22:45:44 +00:00
|
|
|
|
sub MakeResourceAliases()
|
1998-06-16 21:44:03 +00:00
|
|
|
|
{
|
1998-12-16 03:31:18 +00:00
|
|
|
|
unless( $main::build{resources} ) { return; }
|
1998-06-16 21:44:03 +00:00
|
|
|
|
_assertRightDirectory();
|
1998-06-11 03:58:24 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1998-06-16 21:44:03 +00:00
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-04-21 19:13:32 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//
|
1999-04-21 19:13:32 +00:00
|
|
|
|
#// Most resources should all go into the chrome dir eventually
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//
|
1999-04-21 19:13:32 +00:00
|
|
|
|
my($chrome_dir) = "$dist_dir" . "Chrome:";
|
1998-09-16 01:24:52 +00:00
|
|
|
|
my($resource_dir) = "$dist_dir" . "res:";
|
1999-04-22 05:51:43 +00:00
|
|
|
|
my($samples_dir) = "$resource_dir" . "samples:";
|
1999-07-09 04:39:31 +00:00
|
|
|
|
my($defaults_dir) = "$dist_dir" . "Defaults:";
|
1999-04-21 19:13:32 +00:00
|
|
|
|
|
|
|
|
|
#//
|
|
|
|
|
#// Make aliases of resource files
|
|
|
|
|
#//
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:layout:html:document:src:ua.css", "$resource_dir");
|
1999-07-16 20:17:10 +00:00
|
|
|
|
_MakeAlias(":mozilla:layout:html:document:src:arrow.gif", "$resource_dir");
|
1999-07-09 01:16:06 +00:00
|
|
|
|
_MakeAlias(":mozilla:webshell:tests:viewer:resources:viewer.properties", "$resource_dir");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:intl:uconv:src:charsetalias.properties", "$resource_dir");
|
|
|
|
|
_MakeAlias(":mozilla:intl:uconv:src:maccharset.properties", "$resource_dir");
|
1999-06-14 02:09:29 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:extensions:wallet:src:cookie.properties", "$resource_dir");
|
|
|
|
|
_MakeAlias(":mozilla:extensions:wallet:src:wallet.properties", "$resource_dir");
|
1998-09-29 02:31:12 +00:00
|
|
|
|
|
1998-11-02 23:22:26 +00:00
|
|
|
|
my($html_dir) = "$resource_dir" . "html:";
|
1999-07-09 01:16:06 +00:00
|
|
|
|
_InstallResources(":mozilla:layout:html:base:src:MANIFEST_RES", "$html_dir");
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1998-11-02 23:22:26 +00:00
|
|
|
|
my($throbber_dir) = "$resource_dir" . "throbber:";
|
1999-01-26 17:29:41 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:throbber:", "$throbber_dir");
|
1998-11-02 23:22:26 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:samples:", "$samples_dir");
|
1998-12-17 16:15:45 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:resources:", "$samples_dir");
|
1998-11-02 23:22:26 +00:00
|
|
|
|
|
1999-01-15 22:32:53 +00:00
|
|
|
|
my($rdf_dir) = "$resource_dir" . "rdf:";
|
|
|
|
|
BuildFolderResourceAliases(":mozilla:rdf:resources:", "$rdf_dir");
|
1999-05-12 00:26:26 +00:00
|
|
|
|
|
1999-01-26 17:14:37 +00:00
|
|
|
|
|
1999-05-05 05:57:46 +00:00
|
|
|
|
my($profile_dir) = "$resource_dir" . "profile:";
|
|
|
|
|
BuildFolderResourceAliases(":mozilla:profile:resources:", "$profile_dir");
|
1999-07-09 04:39:31 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:profile:defaults:", "$defaults_dir");
|
1999-05-05 05:57:46 +00:00
|
|
|
|
|
1999-01-26 17:14:37 +00:00
|
|
|
|
# NOTE: this will change as we move the toolbar/appshell chrome files to a real place
|
1999-07-01 23:01:19 +00:00
|
|
|
|
my($navigator_chrome_dir) = "$chrome_dir" . "Navigator";
|
|
|
|
|
_InstallResources(":mozilla:xpfe:browser:resources:content:MANIFEST", "$navigator_chrome_dir:content:default");
|
1999-07-14 04:03:00 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:browser:resources:skin:MANIFEST", "$navigator_chrome_dir:skin:default");
|
1999-07-01 23:01:19 +00:00
|
|
|
|
|
1999-07-14 00:52:02 +00:00
|
|
|
|
my($global_chrome_dir) = "$chrome_dir" . "Global";
|
1999-07-20 06:50:59 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:global:resources:content:MANIFEST", "$global_chrome_dir:content:default");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:global:resources:skin:MANIFEST", "$global_chrome_dir:skin:default");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:global:resources:locale:MANIFEST", "$global_chrome_dir:locale:en-US:", 0);
|
1999-07-14 00:52:02 +00:00
|
|
|
|
|
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:browser:src:MANIFEST", "$samples_dir");
|
1999-04-21 19:13:32 +00:00
|
|
|
|
|
1999-04-02 21:14:48 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:browser:samples:", "$samples_dir");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:xpfe:browser:samples:sampleimages:", "$samples_dir");
|
1999-02-03 18:14:31 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:AppCores:xul:", "$samples_dir");
|
1999-04-22 05:51:43 +00:00
|
|
|
|
|
|
|
|
|
my($toolbar_dir) = "$resource_dir" . "toolbar:";
|
1999-02-03 18:14:31 +00:00
|
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:AppCores:xul:resources:", "$toolbar_dir");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_MakeAlias(":mozilla:xpfe:AppCores:xul:resources:throbbingN.gif", "$throbber_dir");
|
1999-06-08 21:36:36 +00:00
|
|
|
|
|
1999-04-21 19:13:32 +00:00
|
|
|
|
if ($main::build{editor})
|
|
|
|
|
{
|
|
|
|
|
my($editor_chrome_dir) = "$chrome_dir" . "Editor";
|
|
|
|
|
|
1999-07-21 19:56:11 +00:00
|
|
|
|
_InstallResources(":mozilla:editor:ui:composer:content:MANIFEST", "$editor_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:editor:ui:composer:skin:MANIFEST", "$editor_chrome_dir:skin:default:", 0);
|
1999-04-21 20:55:07 +00:00
|
|
|
|
|
1999-07-21 19:56:11 +00:00
|
|
|
|
_InstallResources(":mozilla:editor:ui:dialogs:content:MANIFEST", "$editor_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:editor:ui:dialogs:skin:MANIFEST", "$editor_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:editor:ui:dialogs:locale:en-US:MANIFEST", "$editor_chrome_dir:locale:en-US:", 0);
|
1999-04-21 19:13:32 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-05-06 00:03:00 +00:00
|
|
|
|
# if ($main::build{mailnews})
|
1999-04-21 19:13:32 +00:00
|
|
|
|
{
|
1999-05-28 22:43:26 +00:00
|
|
|
|
my($mailnews_dir) = "$resource_dir" . "mailnews";
|
|
|
|
|
my($messenger_chrome_dir) = "$chrome_dir" . "messenger";
|
|
|
|
|
my($messengercomposer_chrome_dir) = "$chrome_dir" . "messengercompose";
|
|
|
|
|
my($addressbook_chrome_dir) = "$chrome_dir" . "addressbook";
|
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallResources(":mozilla:mailnews:base:resources:content:MANIFEST", "$messenger_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:base:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:base:prefs:resources:content:MANIFEST", "$messenger_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:base:prefs:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:base:search:resources:content:MANIFEST", "$messenger_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:mime:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:mime:emitters:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:local:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:news:resources:skin:MANIFEST", "$messenger_chrome_dir:skin:default:", 0);
|
1999-06-29 06:14:39 +00:00
|
|
|
|
_InstallResources(":mozilla:mailnews:news:resources:content:MANIFEST", "$messenger_chrome_dir:content:default:", 0);
|
1999-06-23 04:51:45 +00:00
|
|
|
|
|
|
|
|
|
_InstallResources(":mozilla:mailnews:mime:resources:MANIFEST", "$mailnews_dir:messenger:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:mime:cthandlers:resources:MANIFEST", "$mailnews_dir:messenger:", 0);
|
|
|
|
|
|
|
|
|
|
_InstallResources(":mozilla:mailnews:compose:resources:content:MANIFEST", "$messengercomposer_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:compose:resources:skin:MANIFEST", "$messengercomposer_chrome_dir:skin:default:", 0);
|
1999-07-20 23:29:38 +00:00
|
|
|
|
_InstallResources(":mozilla:mailnews:compose:resources:locale:en-US:MANIFEST", "$messengercomposer_chrome_dir:locale:en-US:", 0);
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallResources(":mozilla:mailnews:compose:prefs:resources:content:MANIFEST", "$messengercomposer_chrome_dir:content:default:", 0);
|
|
|
|
|
|
|
|
|
|
_InstallResources(":mozilla:mailnews:addrbook:resources:content:MANIFEST", "$addressbook_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:addrbook:resources:skin:MANIFEST", "$addressbook_chrome_dir:skin:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:mailnews:addrbook:prefs:resources:content:MANIFEST", "$addressbook_chrome_dir:content:default:", 0);
|
1999-05-28 22:43:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-04-23 16:13:15 +00:00
|
|
|
|
# copy the chrome registry. We want an actual copy so that changes for custom UI's
|
|
|
|
|
# don't accidentally get checked into the tree. (pinkerton, bug#5296).
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_copy( ":mozilla:rdf:chrome:build:registry.rdf", "$chrome_dir" . "registry.rdf" );
|
1999-04-23 16:13:15 +00:00
|
|
|
|
|
1999-04-22 05:51:43 +00:00
|
|
|
|
# Install XPFE component resources
|
1999-07-28 06:33:42 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:components:find:resources:MANIFEST", "$global_chrome_dir:content:default");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:find:resources:locale:MANIFEST", "$global_chrome_dir:locale");
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:components:bookmarks:resources:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:history:resources:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:related:resources:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:search:resources:MANIFEST", "$samples_dir");
|
1999-07-28 06:33:42 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:components:ucth:resources:MANIFEST", "$global_chrome_dir:content:default");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:ucth:resources:locale:MANIFEST", "$global_chrome_dir:locale");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:xfer:resources:MANIFEST", "$global_chrome_dir:content:default");
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:xfer:resources:locale:MANIFEST", "$global_chrome_dir:locale");
|
1999-07-04 01:38:29 +00:00
|
|
|
|
# the WALLET
|
|
|
|
|
_InstallResources(":mozilla:extensions:wallet:cookieviewer:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:extensions:wallet:signonviewer:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:extensions:wallet:walletpreview:MANIFEST", "$samples_dir");
|
|
|
|
|
_InstallResources(":mozilla:extensions:wallet:editor:MANIFEST", "$samples_dir");
|
1999-06-08 21:36:36 +00:00
|
|
|
|
{
|
|
|
|
|
my($pref_chrome_dir) = "$chrome_dir" . "pref";
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_InstallResources(":mozilla:xpfe:components:prefwindow:resources:content:MANIFEST", "$pref_chrome_dir:content:default:", 0);
|
|
|
|
|
_InstallResources(":mozilla:xpfe:components:prefwindow:resources:skin:MANIFEST", "$pref_chrome_dir:skin:default:", 0);
|
1999-06-08 21:36:36 +00:00
|
|
|
|
}
|
1999-04-22 05:51:43 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- Resource copying complete ----\n")
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1999-05-12 07:25:10 +00:00
|
|
|
|
#// Make library aliases
|
1998-12-16 03:31:18 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1999-05-12 07:25:10 +00:00
|
|
|
|
sub MakeLibAliases()
|
1998-12-16 03:31:18 +00:00
|
|
|
|
{
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
1998-12-02 10:17:36 +00:00
|
|
|
|
|
|
|
|
|
local(*F);
|
|
|
|
|
my($filepath, $appath, $psi) = (':mozilla:build:mac:idepath.txt');
|
|
|
|
|
if (open(F, $filepath)) {
|
|
|
|
|
$appath = <F>;
|
|
|
|
|
close(F);
|
1999-05-12 07:25:10 +00:00
|
|
|
|
|
|
|
|
|
#// WasteLib
|
1998-12-13 07:11:44 +00:00
|
|
|
|
my($wastelibpath) = $appath;
|
1999-05-12 07:25:10 +00:00
|
|
|
|
$wastelibpath =~ s/[^:]*$/MacOS Support:WASTE 1.3 Distribution:WASTELib/;
|
1999-06-23 22:56:49 +00:00
|
|
|
|
MakeAlias("$wastelibpath", "$dist_dir"."Essential Files:");
|
1999-05-12 07:25:10 +00:00
|
|
|
|
|
|
|
|
|
#// ProfilerLib
|
|
|
|
|
if ($main::DEBUG)
|
|
|
|
|
{
|
|
|
|
|
my($profilerlibpath) = $appath;
|
|
|
|
|
$profilerlibpath =~ s/[^:]*$/MacOS Support:Libraries:Profiler Common:ProfilerLib/;
|
1999-06-23 22:56:49 +00:00
|
|
|
|
MakeAlias("$profilerlibpath", "$dist_dir"."Essential Files:");
|
1999-05-12 07:25:10 +00:00
|
|
|
|
}
|
1998-12-02 10:17:36 +00:00
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
print STDERR "Can't find $filepath\n";
|
|
|
|
|
}
|
1999-05-12 07:25:10 +00:00
|
|
|
|
}
|
1998-12-02 10:17:36 +00:00
|
|
|
|
|
1999-05-12 07:25:10 +00:00
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build NGLayout
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildLayoutProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{nglayout} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
1998-11-02 23:22:26 +00:00
|
|
|
|
|
1999-05-12 07:25:10 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//
|
|
|
|
|
#// Build Layout projects
|
|
|
|
|
#//
|
1998-11-30 23:39:17 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
_BuildProject(":mozilla:expat:macbuild:expat.mcp", "expat$D.o");
|
1999-03-30 06:22:25 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:htmlparser:macbuild:htmlparser.mcp", "htmlparser$D.shlb", "htmlparser.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-11-30 23:39:17 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:gfx:macbuild:gfx.mcp", "gfx$D.shlb", "gfx.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-05-26 01:38:36 +00:00
|
|
|
|
BuildOneProject(":mozilla:dom:macbuild:dom.mcp", "dom$D.shlb", "dom.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
|
1999-03-10 00:55:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:modules:plugin:macbuild:plugin.mcp", "plugin$D.shlb", "plugin.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-05 09:34:27 +00:00
|
|
|
|
|
1999-05-06 21:40:25 +00:00
|
|
|
|
BuildOneProject(":mozilla:layout:macbuild:layout.mcp", "layout$D.shlb", "layout.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-11-30 22:15:00 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:view:macbuild:view.mcp", "view$D.shlb", "view.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-11-30 22:15:00 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:widget:macbuild:widget.mcp", "widget$D.shlb", "widget.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:webshell:macbuild:webshell.mcp", "webshell$D.shlb", "webshell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-09 03:06:59 +00:00
|
|
|
|
|
1999-03-10 00:55:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:webshell:embed:mac:RaptorShell.mcp", "RaptorShell$D.shlb", "RaptorShell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-12 00:04:45 +00:00
|
|
|
|
|
1999-02-09 03:06:59 +00:00
|
|
|
|
#// XXX this is here because of a very TEMPORARY dependency
|
1999-04-24 03:21:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:rdf:macbuild:rdf.mcp", "RDFLibrary$D.shlb", "rdf.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-03-25 23:50:11 +00:00
|
|
|
|
|
1999-04-02 00:39:26 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpinstall:macbuild:xpinstall.mcp", "xpinstall$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-03-25 23:50:11 +00:00
|
|
|
|
|
1999-06-23 04:51:45 +00:00
|
|
|
|
print("--- Layout projects complete ---\n")
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build Editor Projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-12-13 07:11:44 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
sub BuildEditorProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{editor} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
1998-12-09 20:43:50 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
|
1999-03-10 00:55:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:editor:txmgr:macbuild:txmgr.mcp", "EditorTxmgr$D.shlb", "txmgr.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-04-26 19:51:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:editor:txtsvc:macbuild:txtsvc.mcp", "TextServices$D.shlb", "txtsvc.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-10 00:55:34 +00:00
|
|
|
|
BuildOneProject(":mozilla:editor:macbuild:editor.mcp", "EditorCore$D.shlb", "EditorCore.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- Editor projects complete ----\n")
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build Viewer Projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildViewerProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{viewer} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
1998-12-09 20:43:50 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:webshell:tests:viewer:mac:viewer.mcp", "viewer$D", "viewer.toc", 0, 0, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-05 05:09:04 +00:00
|
|
|
|
# BuildOneProject(":mozilla:xpfe:macbuild:xpfeviewer.mcp", "xpfeviewer$D.shlb", "xpfeviewer.toc", 0, 0, 0);
|
1999-05-04 19:28:14 +00:00
|
|
|
|
|
|
|
|
|
print("--- Viewer projects complete ----\n")
|
1998-06-16 21:44:03 +00:00
|
|
|
|
}
|
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build XPApp Projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildXPAppProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{xpapp} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
|
1999-04-22 05:51:43 +00:00
|
|
|
|
# Components
|
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:find:macbuild:FindComponent.mcp", "FindComponent$D.shlb", "FindComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-06-22 01:38:57 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:ucth:macbuild:ucth.mcp", "ucth$D.shlb", "ucth.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:xfer:macbuild:xfer.mcp", "xfer$D.shlb", "xfer.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-06-12 02:32:12 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:bookmarks:macbuild:Bookmarks.mcp", "Bookmarks$D.shlb", "BookmarksComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-05-18 05:47:00 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:history:macbuild:history.mcp", "history$D.shlb", "historyComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-06-08 21:36:36 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:prefwindow:macbuild:prefwindow.mcp", "prefwindow$D.shlb", "prefwindowComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-06-07 21:17:23 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:related:macbuild:Related.mcp", "Related$D.shlb", "RelatedComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-22 05:51:43 +00:00
|
|
|
|
|
|
|
|
|
# Applications
|
1999-03-05 05:09:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:appshell:macbuild:AppShell.mcp", "AppShell$D.shlb", "AppShell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 03:31:18 +00:00
|
|
|
|
|
1999-03-16 01:41:33 +00:00
|
|
|
|
BuildOneProject(":mozilla:xpfe:AppCores:macbuild:AppCores.mcp", "AppCores$D.shlb", "AppCores.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-03 18:14:31 +00:00
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- XPApp projects complete ----\n")
|
|
|
|
|
|
1998-12-16 03:31:18 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-15 20:07:37 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build MailNews Projects
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
sub BuildMailNewsProjects()
|
|
|
|
|
{
|
|
|
|
|
unless( $main::build{mailnews} ) { return; }
|
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:base:util:macbuild:msgUtil.mcp", "MsgUtil$D.lib", "MsgUtil.toc", 0, 0, 0);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:base:macbuild:msgCore.mcp", "mailnews$D.shlb", "mailnews.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:compose:macbuild:msgCompose.mcp", "MsgCompose$D.shlb", "MsgCompose.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:db:macbuild:msgDB.mcp", "MsgDB$D.shlb", "MsgDB.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-06-22 20:37:39 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:db:mork:macbuild:mork.mcp", "Mork$D.shlb", "Mork.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:local:macbuild:msglocal.mcp", "MsgLocal$D.shlb", "MsgLocal.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-05-07 22:26:43 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:imap:macbuild:msgimap.mcp", "MsgImap$D.shlb", "MsgImap.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-05-06 00:03:00 +00:00
|
|
|
|
|
1999-05-07 22:26:43 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:news:macbuild:msgnews.mcp", "MsgNews$D.shlb", "MsgNews.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-05-06 00:03:00 +00:00
|
|
|
|
|
1999-05-18 00:12:39 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:addrbook:macbuild:msgAddrbook.mcp", "MsgAddrbook$D.shlb", "MsgAddrbook.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
1999-04-18 21:28:27 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:macbuild:mime.mcp", "Mime$D.shlb", "Mime.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
1999-06-14 20:28:42 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:emitters:macbuild:mimeEmitter.mcp", "mimeEmitter$D.shlb", "mimeEmitter.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1999-05-04 18:58:04 +00:00
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:cthandlers:vcard:macbuild:vcard.mcp", "vcard$D.shlb", "vcard.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
|
|
# BuildOneProject(":mozilla:mailnews:mime:cthandlers:calendar:macbuild:calendar.mcp", "calendar$D.shlb", "calendar.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
1999-05-04 19:28:14 +00:00
|
|
|
|
print("--- MailNews projects complete ----\n")
|
1999-04-15 20:07:37 +00:00
|
|
|
|
}
|
|
|
|
|
|
1999-05-11 20:04:47 +00:00
|
|
|
|
sub BuildAppRunner()
|
|
|
|
|
{
|
1999-06-21 23:23:40 +00:00
|
|
|
|
unless( $main::build{apprunner} ) { return; }
|
1999-06-23 04:51:45 +00:00
|
|
|
|
|
1999-05-11 20:04:47 +00:00
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
|
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
|
BuildOneProject(":mozilla:xpfe:bootstrap:macbuild:apprunner.mcp", "apprunner$D", "apprunner.toc", 0, 0, 1);
|
1999-06-21 23:23:40 +00:00
|
|
|
|
|
|
|
|
|
# copy command line documents into the Apprunner folder and set correctly the signature
|
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
my($cmd_file_path) = ":mozilla:xpfe:bootstrap:";
|
|
|
|
|
my($cmd_file) = "";
|
|
|
|
|
|
|
|
|
|
$cmd_file = "Mozilla Addressbook";
|
1999-06-25 21:39:29 +00:00
|
|
|
|
_copy( $cmd_file_path . "Mozilla_Addressbook", $dist_dir . $cmd_file );
|
1999-06-21 23:23:40 +00:00
|
|
|
|
MacPerl::SetFileInfo("MOZZ", "CMDL", $dist_dir . $cmd_file);
|
|
|
|
|
|
|
|
|
|
$cmd_file = "Mozilla Editor";
|
1999-06-25 21:39:29 +00:00
|
|
|
|
_copy( $cmd_file_path . "Mozilla_Editor", $dist_dir . $cmd_file );
|
1999-06-21 23:23:40 +00:00
|
|
|
|
MacPerl::SetFileInfo("MOZZ", "CMDL", $dist_dir . $cmd_file);
|
|
|
|
|
|
|
|
|
|
$cmd_file = "Mozilla Message Compose";
|
1999-06-25 21:39:29 +00:00
|
|
|
|
_copy( $cmd_file_path . "Mozilla_Message_Compose", $dist_dir . $cmd_file );
|
1999-06-21 23:23:40 +00:00
|
|
|
|
MacPerl::SetFileInfo("MOZZ", "CMDL", $dist_dir . $cmd_file);
|
|
|
|
|
|
|
|
|
|
$cmd_file = "Mozilla Messenger";
|
1999-06-25 21:39:29 +00:00
|
|
|
|
_copy( $cmd_file_path . "Mozilla_Messenger", $dist_dir . $cmd_file );
|
1999-06-21 23:23:40 +00:00
|
|
|
|
MacPerl::SetFileInfo("MOZZ", "CMDL", $dist_dir . $cmd_file);
|
|
|
|
|
|
|
|
|
|
$cmd_file = "Mozilla Preference";
|
1999-06-25 21:39:29 +00:00
|
|
|
|
_copy( $cmd_file_path . "Mozilla_Preference", $dist_dir . $cmd_file );
|
1999-06-21 23:23:40 +00:00
|
|
|
|
MacPerl::SetFileInfo("MOZZ", "CMDL", $dist_dir . $cmd_file);
|
1999-05-11 20:04:47 +00:00
|
|
|
|
}
|
1999-04-15 20:07:37 +00:00
|
|
|
|
|
1998-10-06 02:52:09 +00:00
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
#// Build everything
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
1998-06-16 21:44:03 +00:00
|
|
|
|
sub BuildProjects()
|
|
|
|
|
{
|
1999-05-12 07:25:10 +00:00
|
|
|
|
MakeResourceAliases();
|
|
|
|
|
MakeLibAliases();
|
1999-06-10 20:02:53 +00:00
|
|
|
|
|
|
|
|
|
# activate CodeWarrior
|
|
|
|
|
ActivateApplication('CWIE');
|
|
|
|
|
|
|
|
|
|
BuildIDLProjects();
|
1998-12-16 03:31:18 +00:00
|
|
|
|
BuildStubs();
|
1999-05-20 03:34:01 +00:00
|
|
|
|
BuildRuntimeProjects();
|
1998-06-16 21:44:03 +00:00
|
|
|
|
BuildCommonProjects();
|
1999-05-04 19:28:14 +00:00
|
|
|
|
BuildInternationalProjects();
|
1998-06-16 21:44:03 +00:00
|
|
|
|
BuildLayoutProjects();
|
1998-12-16 03:31:18 +00:00
|
|
|
|
BuildEditorProjects();
|
|
|
|
|
BuildViewerProjects();
|
|
|
|
|
BuildXPAppProjects();
|
1999-05-11 20:04:47 +00:00
|
|
|
|
BuildMailNewsProjects();
|
|
|
|
|
BuildAppRunner();
|
1998-06-11 03:58:24 +00:00
|
|
|
|
}
|