1999-03-25 23:36:51 +03:00
|
|
|
#!perl -w
|
1998-06-11 07:58:24 +04:00
|
|
|
package NGLayoutBuildList;
|
|
|
|
|
|
|
|
require 5.004;
|
|
|
|
require Exporter;
|
|
|
|
|
|
|
|
use strict;
|
1998-06-17 01:44:03 +04:00
|
|
|
use vars qw( @ISA @EXPORT );
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
# perl includes
|
1998-06-11 07:58:24 +04:00
|
|
|
use Mac::StandardFile;
|
1998-06-27 05:26:41 +04:00
|
|
|
use Mac::Processes;
|
1999-03-25 07:00:56 +03:00
|
|
|
use Mac::Events;
|
1998-06-11 07:58:24 +04:00
|
|
|
use Cwd;
|
1998-06-17 01:44:03 +04:00
|
|
|
use File::Path;
|
1999-04-23 20:13:15 +04:00
|
|
|
use File::Copy;
|
1998-06-17 01:44:03 +04:00
|
|
|
|
|
|
|
# homegrown
|
1998-06-11 07:58:24 +04:00
|
|
|
use Moz;
|
1998-06-17 01:44:03 +04:00
|
|
|
use MacCVS;
|
1998-12-13 10:11:44 +03:00
|
|
|
use MANIFESTO;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
@ISA = qw(Exporter);
|
1999-03-25 07:00:56 +03:00
|
|
|
@EXPORT = qw(Checkout BuildDist BuildProjects BuildCommonProjects BuildLayoutProjects);
|
1998-06-11 07:58:24 +04: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-17 01:44:03 +04: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 07:58:24 +04:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Utility routines
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-06-11 07:58:24 +04: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 07:00:56 +03: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 07:58:24 +04: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-17 01:44:03 +04:00
|
|
|
sub _getDistDirectory()
|
|
|
|
{
|
1998-06-27 05:26:41 +04:00
|
|
|
return $main::DEBUG ? ":mozilla:dist:viewer_debug:" : ":mozilla:dist:viewer:";
|
1998-06-17 01:44:03 +04:00
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Checkout everything
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
1998-06-11 07:58:24 +04:00
|
|
|
sub Checkout()
|
|
|
|
{
|
1999-03-25 07:00:56 +03:00
|
|
|
# give application activation a chance to happen
|
|
|
|
WaitNextEvent();
|
|
|
|
WaitNextEvent();
|
|
|
|
WaitNextEvent();
|
|
|
|
|
1998-06-11 07:58:24 +04: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-30 01:03:47 +04:00
|
|
|
|
1999-03-25 07:00:56 +03:00
|
|
|
# activate MacCVS
|
|
|
|
ActivateApplication('Mcvs');
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//
|
|
|
|
#// Checkout commands
|
|
|
|
#//
|
1998-10-23 04:22:23 +04:00
|
|
|
if ($main::pull{all})
|
1998-06-11 07:58:24 +04:00
|
|
|
{
|
1999-01-21 05:26:40 +03:00
|
|
|
$session->checkout("SeaMonkeyEditor") || die "checkout failure";
|
1999-01-20 03:36:13 +03:00
|
|
|
|
1998-12-01 01:15:00 +03: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";
|
1998-10-29 14:12:59 +03:00
|
|
|
}
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build the 'dist' directory
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
1998-06-11 07:58:24 +04:00
|
|
|
sub BuildDist()
|
|
|
|
{
|
|
|
|
unless ( $main::build{dist} ) { return;}
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
1999-03-25 07:00:56 +03:00
|
|
|
# activate MacPerl
|
|
|
|
ActivateApplication('McPL');
|
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
# 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:" ]);
|
1998-06-27 05:26:41 +04:00
|
|
|
mkpath([ ":mozilla:dist:viewer:", ":mozilla:dist:viewer_debug:" ]);
|
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
my($distdirectory) = ":mozilla:dist";
|
1999-01-12 23:49:54 +03:00
|
|
|
|
1999-01-13 02:32:30 +03:00
|
|
|
if ($main::MOZ_FULLCIRCLE)
|
1999-01-12 23:49:54 +03:00
|
|
|
{
|
|
|
|
if ( $main::DEBUG )
|
|
|
|
{
|
|
|
|
mkpath([ "$distdirectory:viewer_debug:TalkBack"]);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
mkpath([ "$distdirectory:viewer:TalkBack"]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#MAC_COMMON
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:build:mac:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
InstallFromManifest(":mozilla:lib:mac:NSStdLib:include:MANIFEST", "$distdirectory:mac:common:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", "$distdirectory:mac:common:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:lib:mac:Misc:MANIFEST", "$distdirectory:mac:common:");
|
|
|
|
InstallFromManifest(":mozilla:lib:mac:MoreFiles:MANIFEST", "$distdirectory:mac:common:morefiles:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#INCLUDE
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:config:mac:MANIFEST", "$distdirectory:config:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:");
|
|
|
|
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 06:52:09 +04:00
|
|
|
|
|
|
|
#NSPR
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:nsprpub:pr:src:md:mac:MANIFEST", "$distdirectory:nspr:mac:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:nsprpub:lib:ds:MANIFEST", "$distdirectory:nspr:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:nsprpub:lib:libc:include:MANIFEST", "$distdirectory:nspr:");
|
|
|
|
InstallFromManifest(":mozilla:nsprpub:lib:msgc:include:MANIFEST", "$distdirectory:nspr:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-02-01 07:41:18 +03:00
|
|
|
#INTL
|
1999-02-17 18:27:16 +03:00
|
|
|
#UCONV
|
1999-01-22 04:30:07 +03:00
|
|
|
InstallFromManifest(":mozilla:intl:uconv:public:MANIFEST", "$distdirectory:uconv:");
|
1999-01-30 19:59:17 +03:00
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvlatin:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvja:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvja2:MANIFEST", "$distdirectory:uconv:");
|
1999-04-24 03:41:34 +04:00
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvtw:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvtw2:MANIFEST", "$distdirectory:uconv:");
|
1999-04-07 01:34:59 +04:00
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvcn:MANIFEST", "$distdirectory:uconv:");
|
1999-04-24 03:41:34 +04:00
|
|
|
InstallFromManifest(":mozilla:intl:uconv:ucvko:MANIFEST", "$distdirectory:uconv:");
|
1999-02-25 22:52:25 +03:00
|
|
|
# InstallFromManifest(":mozilla:intl:uconv:ucvth:MANIFEST", "$distdirectory:uconv:");
|
|
|
|
# InstallFromManifest(":mozilla:intl:uconv:ucvvt:MANIFEST", "$distdirectory:uconv:");
|
1999-01-30 19:59:17 +03:00
|
|
|
|
1999-02-17 18:27:16 +03:00
|
|
|
|
|
|
|
#UNICHARUTIL
|
1999-02-01 07:41:18 +03:00
|
|
|
InstallFromManifest(":mozilla:intl:unicharutil:public:MANIFEST", "$distdirectory:unicharutil");
|
1999-02-17 18:27:16 +03:00
|
|
|
|
|
|
|
#LOCALE
|
1999-02-01 07:41:18 +03:00
|
|
|
InstallFromManifest(":mozilla:intl:locale:public:MANIFEST", "$distdirectory:locale:");
|
|
|
|
|
1999-02-17 18:27:16 +03:00
|
|
|
#LWBRK
|
|
|
|
InstallFromManifest(":mozilla:intl:lwbrk:public:MANIFEST", "$distdirectory:lwbrk:");
|
|
|
|
|
1999-01-30 19:59:17 +03:00
|
|
|
#STRRES
|
1999-02-04 01:29:47 +03:00
|
|
|
InstallFromManifest(":mozilla:intl:strres:public:MANIFEST", "$distdirectory:strres:");
|
1999-01-22 04:30:07 +03:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#JPEG
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:jpeg:MANIFEST", "$distdirectory:jpeg:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#LIBREG
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:libreg:include:MANIFEST", "$distdirectory:libreg:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#XPCOM
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:xpcom:public:MANIFEST", "$distdirectory:xpcom:");
|
1999-02-24 20:36:37 +03:00
|
|
|
InstallFromManifest(":mozilla:xpcom:src:MANIFEST", "$distdirectory:xpcom:");
|
1999-04-16 07:07:38 +04:00
|
|
|
InstallFromManifest(":mozilla:xpcom:libxpt:public:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
InstallFromManifest(":mozilla:xpcom:libxpt:xptinfo:public:MANIFEST", "$distdirectory:xpcom:");
|
|
|
|
InstallFromManifest(":mozilla:xpcom:libxpt:xptcall:public:MANIFEST", "$distdirectory:xpcom:");
|
1999-02-24 20:36:37 +03:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#ZLIB
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:zlib:src:MANIFEST", "$distdirectory:zlib:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-03-25 23:13:00 +03:00
|
|
|
#LIBJAR
|
|
|
|
InstallFromManifest(":mozilla:modules:libjar:MANIFEST", "$distdirectory:libjar:");
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#LIBUTIL
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:libutil:public:MANIFEST", "$distdirectory:libutil:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#SUN_JAVA
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:sun-java:stubs:include:MANIFEST", "$distdirectory:sun-java:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:sun-java:stubs:macjri:MANIFEST", "$distdirectory:sun-java:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#NAV_JAVA
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:nav-java:stubs:include:MANIFEST", "$distdirectory:nav-java:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:nav-java:stubs:macjri:MANIFEST", "$distdirectory:nav-java:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#JS
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:js:src:MANIFEST", "$distdirectory:js:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-01-26 04:14:00 +03:00
|
|
|
#LIVECONNECT
|
|
|
|
InstallFromManifest(":mozilla:js:src:liveconnect:MANIFEST", "$distdirectory:liveconnect:");
|
1999-02-04 03:44:34 +03:00
|
|
|
|
1999-04-16 07:07:38 +04:00
|
|
|
#XPCONNECT
|
|
|
|
InstallFromManifest(":mozilla:js:src:xpconnect:public:MANIFEST", "$distdirectory:xpconnect:");
|
|
|
|
|
1999-02-04 03:44:34 +03:00
|
|
|
#CAPS
|
|
|
|
InstallFromManifest(":mozilla:caps:public:MANIFEST", "$distdirectory:caps:");
|
|
|
|
InstallFromManifest(":mozilla:caps:include:MANIFEST", "$distdirectory:caps:");
|
1999-01-26 04:14:00 +03:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#SECURITY_freenav
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:security:freenav:MANIFEST", "$distdirectory:security:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#LIBPREF
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:libpref:public:MANIFEST", "$distdirectory:libpref:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-04-20 04:04:46 +04:00
|
|
|
#PROFILE
|
1999-04-16 02:45:44 +04:00
|
|
|
InstallFromManifest(":mozilla:profile:public:MANIFEST", "$distdirectory:profile:");
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#LIBIMAGE
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:libimg:png:MANIFEST", "$distdirectory:libimg:");
|
|
|
|
InstallFromManifest(":mozilla:modules:libimg:src:MANIFEST", "$distdirectory:libimg:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:libimg:public:MANIFEST", "$distdirectory:libimg:");
|
1999-04-23 03:12:41 +04:00
|
|
|
InstallFromManifest(":mozilla:modules:libimg:public_com:MANIFEST", "$distdirectory:libimg:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#PLUGIN
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:plugin:nglsrc:MANIFEST", "$distdirectory:plugin:");
|
|
|
|
InstallFromManifest(":mozilla:modules:plugin:public:MANIFEST", "$distdirectory:plugin:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:plugin:src:MANIFEST", "$distdirectory:plugin:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:oji:src:MANIFEST", "$distdirectory:oji:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:modules:oji:public:MANIFEST", "$distdirectory:oji:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-03-02 22:02:28 +03:00
|
|
|
#DBM
|
|
|
|
InstallFromManifest(":mozilla:dbm:include:MANIFEST", "$distdirectory:dbm:");
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#LAYERS (IS THIS STILL NEEDED)
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:lib:liblayer:include:MANIFEST", "$distdirectory:layers:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#NETWORK
|
1998-12-16 08:40:20 +03:00
|
|
|
InstallFromManifest(":mozilla:network:public:MANIFEST", "$distdirectory:network:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:network:cache:MANIFEST", "$distdirectory:network:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:network:client:MANIFEST", "$distdirectory:network:");
|
1998-10-27 00:23:39 +03:00
|
|
|
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:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:network:protocol:about:MANIFEST", "$distdirectory:network:");
|
1998-10-27 00:23:39 +03:00
|
|
|
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:");
|
1999-01-27 03:15:25 +03:00
|
|
|
InstallFromManifest(":mozilla:network:protocol:sockstub:MANIFEST", "$distdirectory:network:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:network:module:MANIFEST", "$distdirectory:network:module");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#BASE
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:base:src:MANIFEST", "$distdirectory:base:");
|
|
|
|
InstallFromManifest(":mozilla:base:public:MANIFEST", "$distdirectory:base:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1999-03-27 05:09:31 +03:00
|
|
|
#WALLET
|
|
|
|
InstallFromManifest(":mozilla:extensions:wallet:public:MANIFEST", "$distdirectory:wallet:");
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#WEBSHELL
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:webshell:public:MANIFEST", "$distdirectory:webshell:");
|
1999-03-10 03:55:34 +03:00
|
|
|
InstallFromManifest(":mozilla:webshell:tests:viewer:public:MANIFEST", "$distdirectory:webshell:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#LAYOUT
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:build:MANIFEST", "$distdirectory:layout:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:base:public:MANIFEST", "$distdirectory:layout:");
|
1999-03-10 03:55:34 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:document:src:MANIFEST", "$distdirectory:layout:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:style:public:MANIFEST", "$distdirectory:layout:");
|
1998-12-04 00:48:45 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:style:src:MANIFEST", "$distdirectory:layout:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:base:src:MANIFEST", "$distdirectory:layout:");
|
1999-01-22 19:04:51 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:forms:public:MANIFEST", "$distdirectory:layout:");
|
1999-03-10 03:55:34 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:html:table:public:MANIFEST", "$distdirectory:layout:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:base:src:MANIFEST", "$distdirectory:layout:");
|
|
|
|
InstallFromManifest(":mozilla:layout:events:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
InstallFromManifest(":mozilla:layout:events:src:MANIFEST", "$distdirectory:layout:");
|
1998-12-02 03:21:44 +03:00
|
|
|
InstallFromManifest(":mozilla:layout:xml:document:public:MANIFEST", "$distdirectory:layout:");
|
|
|
|
InstallFromManifest(":mozilla:layout:xml:content:public:MANIFEST", "$distdirectory:layout:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#GFX
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:gfx:public:MANIFEST", "$distdirectory:gfx:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#VIEW
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:view:public:MANIFEST", "$distdirectory:view:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#DOM
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:public:MANIFEST", "$distdirectory:dom:");
|
1999-02-03 21:14:31 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:public:base:MANIFEST", "$distdirectory:dom:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:public:coreDom:MANIFEST", "$distdirectory:dom:");
|
|
|
|
InstallFromManifest(":mozilla:dom:public:coreEvents:MANIFEST", "$distdirectory:dom:");
|
|
|
|
InstallFromManifest(":mozilla:dom:public:events:MANIFEST", "$distdirectory:dom:");
|
1999-04-13 05:33:49 +04:00
|
|
|
InstallFromManifest(":mozilla:dom:public:range:MANIFEST", "$distdirectory:dom:");
|
1998-12-01 01:15:00 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:public:html:MANIFEST", "$distdirectory:dom:");
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:public:css:MANIFEST", "$distdirectory:dom:");
|
|
|
|
InstallFromManifest(":mozilla:dom:src:jsurl:MANIFEST", "$distdirectory:dom:");
|
1999-02-03 21:14:31 +03:00
|
|
|
InstallFromManifest(":mozilla:dom:src:base:MANIFEST", "$distdirectory:dom:");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
|
|
|
#HTMLPARSER
|
1998-10-27 00:23:39 +03:00
|
|
|
InstallFromManifest(":mozilla:htmlparser:src:MANIFEST", "$distdirectory:htmlparser:");
|
1999-02-27 12:42:52 +03:00
|
|
|
|
|
|
|
#EXPAT
|
|
|
|
InstallFromManifest(":mozilla:expat:xmlparse:MANIFEST", "$distdirectory:expat:");
|
|
|
|
|
1999-04-01 22:39:35 +04:00
|
|
|
#WIDGET
|
|
|
|
InstallFromManifest(":mozilla:widget:public:MANIFEST", "$distdirectory:widget:");
|
|
|
|
InstallFromManifest(":mozilla:widget:src:mac:MANIFEST", "$distdirectory:widget:");
|
|
|
|
|
1998-12-02 03:21:44 +03:00
|
|
|
#RDF
|
1998-12-24 11:10:45 +03:00
|
|
|
InstallFromManifest(":mozilla:rdf:base:public:MANIFEST", "$distdirectory:rdf:");
|
1999-02-24 15:01:16 +03:00
|
|
|
InstallFromManifest(":mozilla:rdf:util:public:MANIFEST", "$distdirectory:rdf:");
|
1998-12-24 11:10:45 +03:00
|
|
|
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 06:18:27 +04:00
|
|
|
|
|
|
|
#BRPROF
|
|
|
|
InstallFromManifest(":mozilla:rdf:brprof:public:MANIFEST", "$distdirectory:brprof:");
|
1999-04-02 06:16:45 +04:00
|
|
|
|
|
|
|
#CHROME
|
|
|
|
InstallFromManifest(":mozilla:rdf:chrome:public:MANIFEST", "$distdirectory:chrome:");
|
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-11-30 02:52:10 +03:00
|
|
|
#EDITOR
|
|
|
|
InstallFromManifest(":mozilla:editor:public:MANIFEST", "$distdirectory:editor:");
|
1998-12-11 21:13:11 +03:00
|
|
|
InstallFromManifest(":mozilla:editor:txmgr:public:MANIFEST", "$distdirectory:editor:txmgr");
|
1999-04-20 05:03:20 +04:00
|
|
|
InstallFromManifest(":mozilla:editor:txtsvc:public:MANIFEST", "$distdirectory:editor:txtsvc");
|
|
|
|
|
1999-01-20 03:36:13 +03:00
|
|
|
#SILENTDL
|
|
|
|
InstallFromManifest(":mozilla:silentdl:MANIFEST", "$distdirectory:silentdl:");
|
1998-11-30 02:52:10 +03:00
|
|
|
|
1999-03-25 23:13:00 +03:00
|
|
|
#XPINSTALL
|
|
|
|
InstallFromManifest(":mozilla:xpinstall:public:MANIFEST", "$distdirectory:xpinstall:");
|
|
|
|
|
1999-01-12 23:49:54 +03:00
|
|
|
#FULL CIRCLE
|
1999-01-13 02:32:30 +03:00
|
|
|
if ($main::MOZ_FULLCIRCLE)
|
1999-01-12 23:49:54 +03:00
|
|
|
{
|
1999-03-10 03:55:34 +03:00
|
|
|
InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
|
1999-01-12 23:49:54 +03:00
|
|
|
|
|
|
|
if ($main::DEBUG)
|
|
|
|
{
|
1999-03-10 03:55:34 +03:00
|
|
|
#InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer_debug:");
|
1999-01-12 23:49:54 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
1999-03-10 03:55:34 +03:00
|
|
|
#InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory:viewer:");
|
|
|
|
InstallFromManifest(":ns:fullsoft:public:MANIFEST", "$distdirectory");
|
1999-01-12 23:49:54 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
1999-04-22 07:05:24 +04:00
|
|
|
|
|
|
|
# XPFE COMPONENTS
|
|
|
|
InstallFromManifest(":mozilla:xpfe:components:public:MANIFEST", "$distdirectory:xpfe:components");
|
|
|
|
# find
|
|
|
|
InstallFromManifest(":mozilla:xpfe:components:find:public:MANIFEST", "$distdirectory:xpfe:components:find");
|
|
|
|
|
1999-02-03 21:14:31 +03:00
|
|
|
# XPAPPS
|
1999-03-10 03:55:34 +03:00
|
|
|
InstallFromManifest(":mozilla:xpfe:AppCores:public:MANIFEST", "$distdirectory:xpfe:");
|
|
|
|
InstallFromManifest(":mozilla:xpfe:appshell:public:MANIFEST", "$distdirectory:xpfe:");
|
1999-02-03 21:14:31 +03:00
|
|
|
|
1999-04-16 00:07:37 +04:00
|
|
|
# MAILNEWS
|
|
|
|
if ($main::build{mailnews})
|
|
|
|
{
|
|
|
|
InstallFromManifest(":mozilla:mailnews:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
InstallFromManifest(":mozilla:mailnews:base:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
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:compose:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
InstallFromManifest(":mozilla:mailnews:db:mdb:public: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:mime:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
InstallFromManifest(":mozilla:mailnews:news:public:MANIFEST", "$distdirectory:mailnews:");
|
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#// To get out defines in all the project, dummy alias NGLayoutConfigInclude.h into MacConfigInclude.h
|
|
|
|
MakeAlias(":mozilla:config:mac:NGLayoutConfigInclude.h", ":mozilla:dist:config:MacConfigInclude.h");
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build stub projects
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
sub BuildStubs()
|
|
|
|
{
|
|
|
|
|
|
|
|
unless( $main::build{stubs} ) { return; }
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
#//
|
|
|
|
#// Clean projects
|
|
|
|
#//
|
|
|
|
BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
|
|
|
|
BuildProjectClean(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "Stubs");
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// 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 08:09:04 +03:00
|
|
|
sub BuildOneProject($$$$$$)
|
1998-12-16 06:31:18 +03:00
|
|
|
{
|
1999-03-05 08:09:04 +03:00
|
|
|
my ($project_path, $target_name, $toc_file, $alias_shlb, $alias_xSYM, $component) = @_;
|
1998-12-16 06:31:18 +03: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 03:55:34 +03:00
|
|
|
my($component_dir) = $component ? "Components:" : "";
|
1998-12-16 06:31:18 +03:00
|
|
|
|
|
|
|
my($project_dir) = $project_path;
|
|
|
|
$project_dir =~ s/:[^:]+$/:/; # chop off leaf name
|
|
|
|
|
1998-12-17 04:24:37 +03: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 06:31:18 +03:00
|
|
|
if ($toc_file ne "")
|
|
|
|
{
|
|
|
|
ReconcileProject("$project_path", "$project_dir$toc_file");
|
|
|
|
}
|
|
|
|
|
|
|
|
BuildProject($project_path, $target_name);
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
$alias_shlb ? MakeAlias("$project_dir$target_name", "$dist_dir$component_dir") : 0;
|
1998-12-16 06:31:18 +03:00
|
|
|
$alias_xSYM ? MakeAlias("$project_dir$target_name.xSYM", "$dist_dir") : 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build common projects
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
sub BuildCommonProjects()
|
1998-06-11 07:58:24 +04:00
|
|
|
{
|
1998-06-27 05:26:41 +04:00
|
|
|
unless( $main::build{common} ) { return; }
|
1998-06-11 07:58:24 +04:00
|
|
|
_assertRightDirectory();
|
|
|
|
|
|
|
|
# $D becomes a suffix to target names for selecting either the debug or non-debug target of a project
|
1998-06-17 01:44:03 +04:00
|
|
|
my($D) = $main::DEBUG ? "Debug" : "";
|
|
|
|
my($dist_dir) = _getDistDirectory();
|
|
|
|
|
1998-12-01 01:15:00 +03:00
|
|
|
#//
|
|
|
|
#// Stub libraries
|
|
|
|
#//
|
|
|
|
BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//
|
|
|
|
#// Shared libraries
|
|
|
|
#//
|
1998-09-29 21:13:57 +04:00
|
|
|
if ( $main::CARBON )
|
|
|
|
{
|
1999-04-07 07:11:40 +04:00
|
|
|
if ( $main::CARBONLITE ) {
|
|
|
|
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "Carbon Interfaces (Lite)");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "Carbon Interfaces");
|
|
|
|
}
|
1998-09-29 21:13:57 +04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
BuildProject(":mozilla:cmd:macfe:projects:interfaceLib:Interface.mcp", "MacOS Interfaces");
|
|
|
|
}
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "NSRuntime$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-02-26 03:48:30 +03:00
|
|
|
BuildProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles.o");
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-02-26 03:48:30 +03:00
|
|
|
BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.o");
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb", "NSPR20.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-26 03:48:30 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb", "JPEG.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:modules:libreg:macbuild:libreg.mcp", "libreg$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-23 22:56:57 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb", "xpcom.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-26 10:02:51 +03:00
|
|
|
|
1999-04-16 07:07:38 +04:00
|
|
|
BuildOneProject(":mozilla:xpcom:libxpt:macbuild:libxpt.mcp", "libxpt$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:js:macbuild:JavaScript.mcp", "JavaScript$D.shlb", "JavaScript.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-26 03:48:30 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:js:macbuild:LiveConnect.mcp", "LiveConnect$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-26 04:14:00 +03:00
|
|
|
|
1999-04-16 07:07:38 +04:00
|
|
|
BuildOneProject(":mozilla:js:macbuild:XPConnect.mcp", "XPConnect$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb", "zlib.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-04 03:44:34 +03:00
|
|
|
|
1999-03-25 23:13:00 +03:00
|
|
|
BuildOneProject(":mozilla:modules:libjar:macbuild:libjar.mcp", "libjar$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:caps:macbuild:Caps.mcp", "Caps$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-04 03:44:34 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:modules:oji:macbuild:oji.mcp", "oji$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:base:macbuild:base.mcp", "base$D.shlb", "base.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-22 06:53:24 +03:00
|
|
|
|
1999-04-20 04:04:46 +04:00
|
|
|
BuildOneProject(":mozilla:modules:libpref:macbuild:libpref.mcp", "libpref$D.shlb", "libpref.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
|
|
|
|
1999-04-23 10:29:50 +04:00
|
|
|
BuildOneProject(":mozilla:profile:macbuild:profile.mcp", "profile$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 02:45:44 +04:00
|
|
|
|
1999-02-26 03:48:30 +03:00
|
|
|
# International projects
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:uconv.mcp", "uconv$D.shlb", "uconv.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 04:30:07 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvlatin.mcp", "ucvlatin$D.shlb", "uconvlatin.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 04:30:07 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvja.mcp", "ucvja$D.shlb", "ucvja.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-03-17 04:22:06 +03:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvja2.mcp", "ucvja2$D.shlb", "ucvja2.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-02-25 23:16:28 +03:00
|
|
|
#// Have not enable yet... place holder
|
1999-04-24 03:41:34 +04:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvtw.mcp", "ucvtw$D.shlb", "ucvtw.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-04-24 03:41:34 +04:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvtw2.mcp", "ucvtw2$D.shlb", "ucvtw2.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-04-07 01:34:59 +04:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvcn.mcp", "ucvcn$D.shlb", "ucvcn.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-04-24 03:41:34 +04:00
|
|
|
BuildOneProject(":mozilla:intl:uconv:macbuild:ucvko.mcp", "ucvko$D.shlb", "ucvko.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
# BuildOneProject(":mozilla:intl:uconv:macbuild:ucvvt.mcp", "ucvvt$D.shlb", "ucvvt.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
# BuildOneProject(":mozilla:intl:uconv:macbuild:ucvth.mcp", "ucvth$D.shlb", "ucvth.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-25 22:52:25 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:unicharutil:macbuild:unicharutil.mcp", "unicharutil$D.shlb", "unicharutil.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-01 07:41:18 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:locale:macbuild:locale.mcp", "nslocale$D.shlb", "nslocale.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-01 07:41:18 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:lwbrk:macbuild:lwbrk.mcp", "lwbrk$D.shlb", "lwbrk.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-02-17 18:27:16 +03:00
|
|
|
|
1999-03-23 22:57:00 +03:00
|
|
|
BuildOneProject(":mozilla:intl:strres:macbuild:strres.mcp", "strres$D.shlb", "strres.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-01-22 04:30:07 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:modules:libutil:macbuild:libutil.mcp", "libutil$D.shlb", "libutil.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
|
|
|
ReconcileProject(":mozilla:modules:libimg:macbuild:png.mcp", ":mozilla:modules:libimg:macbuild:png.toc");
|
|
|
|
BuildProject(":mozilla:modules:libimg:macbuild:png.mcp", "png$D.o");
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:modules:libimg:macbuild:libimg.mcp", "libimg$D.shlb", "libimg.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-04-24 07:21:34 +04:00
|
|
|
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);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:network:macbuild:network.mcp", "NetworkModular$D.shlb", "network.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-04-24 09:30:44 +04:00
|
|
|
BuildOneProject(":mozilla:extensions:wallet:macbuild:wallet.mcp", "Wallet$D.shlb", "wallet.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-01 06:18:27 +04:00
|
|
|
|
1999-04-24 07:21:34 +04: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);
|
1999-04-02 06:16:45 +04:00
|
|
|
|
1999-02-09 06:06:59 +03:00
|
|
|
#// XXX moved this TEMPORARILY to layout while we sort out a dependency
|
1999-04-07 04:17:17 +04:00
|
|
|
# BuildOneProject(":mozilla:rdf:macbuild:rdf.mcp", "rdf$D.shlb", "rdf.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-10-06 06:52:09 +04:00
|
|
|
}
|
1998-08-05 12:32:38 +04:00
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Make resource aliases for one directory
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
sub BuildFolderResourceAliases($$)
|
1998-11-03 02:22:26 +03:00
|
|
|
{
|
|
|
|
my($src_dir, $dest_dir) = @_;
|
|
|
|
|
|
|
|
# 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
|
|
|
|
for ( @resource_files ) {
|
|
|
|
next if $_ eq "CVS";
|
|
|
|
|
|
|
|
my($file_name) = $src_dir . $_;
|
|
|
|
print("Placing alias to file $file_name in $dest_dir\n");
|
|
|
|
MakeAlias($file_name, $dest_dir);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-12-16 06:31:18 +03:00
|
|
|
#// Make resource aliases
|
1998-10-06 06:52:09 +04:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1999-04-16 02:45:44 +04:00
|
|
|
sub MakeResourceAliases()
|
1998-06-17 01:44:03 +04:00
|
|
|
{
|
1998-12-16 06:31:18 +03:00
|
|
|
unless( $main::build{resources} ) { return; }
|
1998-06-17 01:44:03 +04:00
|
|
|
_assertRightDirectory();
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1998-06-17 01:44:03 +04: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 06:31:18 +03:00
|
|
|
|
1999-04-21 23:13:32 +04:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//
|
1999-04-21 23:13:32 +04:00
|
|
|
#// Most resources should all go into the chrome dir eventually
|
1998-10-06 06:52:09 +04:00
|
|
|
#//
|
1999-04-21 23:13:32 +04:00
|
|
|
my($chrome_dir) = "$dist_dir" . "Chrome:";
|
1998-09-16 05:24:52 +04:00
|
|
|
my($resource_dir) = "$dist_dir" . "res:";
|
1999-04-22 09:51:43 +04:00
|
|
|
my($samples_dir) = "$resource_dir" . "samples:";
|
1999-04-21 23:13:32 +04:00
|
|
|
|
|
|
|
#//
|
|
|
|
#// Make aliases of resource files
|
|
|
|
#//
|
1998-12-01 01:15:00 +03:00
|
|
|
MakeAlias(":mozilla:layout:html:document:src:ua.css", "$resource_dir");
|
1999-03-10 03:55:34 +03:00
|
|
|
MakeAlias(":mozilla:webshell:tests:viewer:resources:viewer.properties", "$resource_dir");
|
1998-09-29 06:31:12 +04:00
|
|
|
|
1998-11-03 02:22:26 +03:00
|
|
|
my($html_dir) = "$resource_dir" . "html:";
|
1998-12-01 01:15:00 +03:00
|
|
|
MakeAlias(":mozilla:layout:html:base:src:broken-image.gif", "$html_dir");
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1998-11-03 02:22:26 +03:00
|
|
|
my($throbber_dir) = "$resource_dir" . "throbber:";
|
1999-01-26 20:29:41 +03:00
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:throbber:", "$throbber_dir");
|
1998-11-03 02:22:26 +03:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:samples:", "$samples_dir");
|
1998-12-17 19:15:45 +03:00
|
|
|
BuildFolderResourceAliases(":mozilla:webshell:tests:viewer:resources:", "$samples_dir");
|
1998-11-03 02:22:26 +03:00
|
|
|
|
1999-01-16 01:32:53 +03:00
|
|
|
my($rdf_dir) = "$resource_dir" . "rdf:";
|
|
|
|
BuildFolderResourceAliases(":mozilla:rdf:resources:", "$rdf_dir");
|
1999-01-26 20:14:37 +03:00
|
|
|
|
|
|
|
# NOTE: this will change as we move the toolbar/appshell chrome files to a real place
|
1999-04-21 23:13:32 +04:00
|
|
|
InstallResources(":mozilla:xpfe:browser:src:MANIFEST", "$samples_dir");
|
|
|
|
|
1999-04-03 01:14:48 +04:00
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:browser:samples:", "$samples_dir");
|
|
|
|
MakeAlias(":mozilla:xpfe:browser:samples:sampleimages:", "$samples_dir");
|
1999-02-03 21:14:31 +03:00
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:AppCores:xul:", "$samples_dir");
|
1999-04-22 09:51:43 +04:00
|
|
|
|
|
|
|
my($toolbar_dir) = "$resource_dir" . "toolbar:";
|
1999-02-03 21:14:31 +03:00
|
|
|
BuildFolderResourceAliases(":mozilla:xpfe:AppCores:xul:resources:", "$toolbar_dir");
|
1999-03-13 05:51:00 +03:00
|
|
|
MakeAlias(":mozilla:xpfe:AppCores:xul:resources:throbbingN.gif", "$throbber_dir");
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-21 23:13:32 +04:00
|
|
|
if ($main::build{editor})
|
|
|
|
{
|
|
|
|
my($editor_chrome_dir) = "$chrome_dir" . "Editor";
|
|
|
|
|
1999-04-22 06:57:57 +04:00
|
|
|
InstallResources(":mozilla:editor:ui:composer:content:MANIFEST", "$editor_chrome_dir:composer:content:default:", 0);
|
|
|
|
InstallResources(":mozilla:editor:ui:composer:skin:MANIFEST", "$editor_chrome_dir:composer:skin:default:", 0);
|
1999-04-22 00:55:07 +04:00
|
|
|
|
1999-04-22 06:57:57 +04:00
|
|
|
InstallResources(":mozilla:editor:ui:dialogs:content:MANIFEST", "$editor_chrome_dir:dialogs:content:default:", 0);
|
|
|
|
InstallResources(":mozilla:editor:ui:dialogs:skin:MANIFEST", "$editor_chrome_dir:dialogs:skin:default:", 0);
|
1999-04-21 23:13:32 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($main::build{mailnews})
|
|
|
|
{
|
1999-04-16 00:07:37 +04:00
|
|
|
my($messenger_dir) = "$resource_dir" . "mailnews:messenger:";
|
|
|
|
BuildFolderResourceAliases(":mozilla:mailnews:ui:messenger:resources:", "$messenger_dir");
|
1999-04-21 23:13:32 +04:00
|
|
|
# BuildFolderResourceAliases(":mozilla:mailnews:mime:emitters:xml:resources:", "$messenger_dir");
|
1999-04-16 00:07:37 +04:00
|
|
|
|
|
|
|
my($compose_dir) = "$resource_dir" . "mailnews:compose:";
|
|
|
|
BuildFolderResourceAliases(":mozilla:mailnews:ui:compose:resources:", "$compose_dir");
|
1999-04-21 23:13:32 +04:00
|
|
|
|
1999-04-16 00:07:37 +04:00
|
|
|
my($msgpref_dir) = "$resource_dir" . "mailnews:preference:";
|
|
|
|
BuildFolderResourceAliases(":mozilla:mailnews:ui:preference:resources:", "$msgpref_dir");
|
|
|
|
}
|
1999-04-07 04:17:17 +04:00
|
|
|
|
1999-04-23 20:13:15 +04: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).
|
|
|
|
copy ( ":mozilla:rdf:chrome:build:registry.rdf", "$chrome_dir" . "registry.rdf" );
|
|
|
|
print ( "copying mozilla:rdf:chrime:build:registry.rdf to $chrome_dir\n" );
|
|
|
|
|
1999-04-22 09:51:43 +04:00
|
|
|
# Install XPFE component resources
|
|
|
|
InstallResources(":mozilla:xpfe:components:find:resources:MANIFEST", "$samples_dir");
|
|
|
|
|
1998-12-16 06:31:18 +03: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-12-02 13:17:36 +03:00
|
|
|
|
|
|
|
|
|
|
|
#//
|
|
|
|
#// Make WasteLib alias
|
|
|
|
#//
|
|
|
|
local(*F);
|
|
|
|
my($filepath, $appath, $psi) = (':mozilla:build:mac:idepath.txt');
|
|
|
|
if (open(F, $filepath)) {
|
|
|
|
$appath = <F>;
|
|
|
|
close(F);
|
1998-12-13 10:11:44 +03:00
|
|
|
#// beard: use pattern substitution to generate path to WasteLib. (thanks gordon!)
|
|
|
|
$appath =~ s/[^:]*$/MacOS Support:WASTE 1.3 Distribution:WASTELib/;
|
|
|
|
my($wastelibpath) = $appath;
|
1998-12-02 13:17:36 +03:00
|
|
|
MakeAlias("$wastelibpath", "$dist_dir");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
print STDERR "Can't find $filepath\n";
|
|
|
|
}
|
|
|
|
|
1998-11-03 02:22:26 +03:00
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//
|
|
|
|
#// Build Layout projects
|
|
|
|
#//
|
1998-12-01 02:39:17 +03:00
|
|
|
|
1999-03-30 10:22:25 +04:00
|
|
|
BuildProject(":mozilla:expat:macbuild:expat.mcp", "expat$D.o");
|
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:htmlparser:macbuild:htmlparser.mcp", "htmlparser$D.shlb", "htmlparser.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-01 02:39:17 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:dom:macbuild:dom.mcp", "dom$D.shlb", "dom.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:gfx:macbuild:gfx.mcp", "gfx$D.shlb", "gfx.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-10 03:55:34 +03:00
|
|
|
BuildOneProject(":mozilla:modules:plugin:macbuild:plugin.mcp", "plugin$D.shlb", "plugin.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-01-05 12:34:27 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:layout:macbuild:layout.mcp", "layout$D.shlb", "layout.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-01 01:15:00 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:view:macbuild:view.mcp", "view$D.shlb", "view.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-01 01:15:00 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:widget:macbuild:widget.mcp", "widget$D.shlb", "widget.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:webshell:macbuild:webshell.mcp", "webshell$D.shlb", "webshell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-09 06:06:59 +03:00
|
|
|
|
1999-03-10 03:55:34 +03:00
|
|
|
BuildOneProject(":mozilla:webshell:embed:mac:RaptorShell.mcp", "RaptorShell$D.shlb", "RaptorShell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-12 03:04:45 +03:00
|
|
|
|
1999-02-09 06:06:59 +03:00
|
|
|
#// XXX this is here because of a very TEMPORARY dependency
|
1999-04-24 07:21:34 +04:00
|
|
|
BuildOneProject(":mozilla:rdf:macbuild:rdf.mcp", "RDFLibrary$D.shlb", "rdf.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-03-26 02:50:11 +03:00
|
|
|
|
1999-04-02 04:39:26 +04:00
|
|
|
BuildOneProject(":mozilla:xpinstall:macbuild:xpinstall.mcp", "xpinstall$D.shlb", "", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-03-26 02:50:11 +03:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build Editor Projects
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
1998-12-13 10:11:44 +03:00
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
sub BuildEditorProjects()
|
|
|
|
{
|
|
|
|
unless( $main::build{editor} ) { return; }
|
|
|
|
_assertRightDirectory();
|
1998-12-09 23:43:50 +03:00
|
|
|
|
1998-12-16 06:31:18 +03: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 03:55:34 +03:00
|
|
|
BuildOneProject(":mozilla:editor:txmgr:macbuild:txmgr.mcp", "EditorTxmgr$D.shlb", "txmgr.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-04-26 23:51:34 +04:00
|
|
|
BuildOneProject(":mozilla:editor:txtsvc:macbuild:txtsvc.mcp", "TextServices$D.shlb", "txtsvc.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-10 03:55:34 +03:00
|
|
|
BuildOneProject(":mozilla:editor:macbuild:editor.mcp", "EditorCore$D.shlb", "EditorCore.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build Viewer Projects
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
sub BuildViewerProjects()
|
|
|
|
{
|
|
|
|
unless( $main::build{viewer} ) { return; }
|
|
|
|
_assertRightDirectory();
|
1998-12-09 23:43:50 +03:00
|
|
|
|
1998-12-16 06:31:18 +03: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 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:webshell:tests:viewer:mac:viewer.mcp", "viewer$D", "viewer.toc", 0, 0, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
# BuildOneProject(":mozilla:xpfe:macbuild:xpfeviewer.mcp", "xpfeviewer$D.shlb", "xpfeviewer.toc", 0, 0, 0);
|
1998-06-17 01:44:03 +04:00
|
|
|
}
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
|
1998-12-16 06:31:18 +03: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 09:51:43 +04:00
|
|
|
# Components
|
|
|
|
BuildOneProject(":mozilla:xpfe:components:find:macbuild:FindComponent.mcp", "FindComponent$D.shlb", "FindComponent.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
|
|
|
|
# Applications
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:xpfe:appshell:macbuild:AppShell.mcp", "AppShell$D.shlb", "AppShell.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
1999-03-16 04:41:33 +03:00
|
|
|
BuildOneProject(":mozilla:xpfe:AppCores:macbuild:AppCores.mcp", "AppCores$D.shlb", "AppCores.toc", 1, $main::ALIAS_SYM_FILES, 0);
|
1999-02-03 21:14:31 +03:00
|
|
|
|
1999-03-05 08:09:04 +03:00
|
|
|
BuildOneProject(":mozilla:xpfe:bootstrap:macbuild:apprunner.mcp", "apprunner$D", "apprunner.toc", 0, 0, 1);
|
1998-12-16 06:31:18 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-04-16 00:07:37 +04: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-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:base:util:macbuild:msgUtil.mcp", "MsgUtil$D.lib", "MsgUtil.toc", 0, 0, 0);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:base:macbuild:msgCore.mcp", "mailnews$D.shlb", "mailnews.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:compose:macbuild:msgCompose.mcp", "MsgCompose$D.shlb", "MsgCompose.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:db:macbuild:msgDB.mcp", "MsgDB$D.shlb", "MsgDB.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:local:macbuild:msglocal.mcp", "MsgLocal$D.shlb", "MsgLocal.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
1999-04-19 01:28:27 +04:00
|
|
|
BuildOneProject(":mozilla:mailnews:mime:macbuild:mime.mcp", "Mime$D.shlb", "Mime.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:emitters:html:macbuild:htmlEmitter.mcp", "htmlEmitter$D.shlb", "htmlEmitter.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:emitters:xml:macbuild:xmlEmitter.mcp", "xmlEmitter$D.shlb", "xmlEmitter.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
|
|
|
|
|
|
|
BuildOneProject(":mozilla:mailnews:mime:emitters:raw:macbuild:rawEmitter.mcp", "rawEmitter$D.shlb", "rawEmitter.toc", 1, $main::ALIAS_SYM_FILES, 1);
|
1999-04-16 00:07:37 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1998-10-06 06:52:09 +04:00
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
#// Build everything
|
|
|
|
#//--------------------------------------------------------------------------------------------------
|
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
sub BuildProjects()
|
|
|
|
{
|
1999-03-25 07:00:56 +03:00
|
|
|
# activate CodeWarrior
|
|
|
|
ActivateApplication('CWIE');
|
|
|
|
|
1998-12-16 06:31:18 +03:00
|
|
|
BuildStubs();
|
1998-06-17 01:44:03 +04:00
|
|
|
BuildCommonProjects();
|
|
|
|
BuildLayoutProjects();
|
1998-12-16 06:31:18 +03:00
|
|
|
BuildEditorProjects();
|
1999-04-16 02:45:44 +04:00
|
|
|
MakeResourceAliases();
|
1998-12-16 06:31:18 +03:00
|
|
|
BuildViewerProjects();
|
|
|
|
BuildXPAppProjects();
|
1999-04-16 00:07:37 +04:00
|
|
|
BuildMailNewsProjects();
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|