1998-06-11 07:58:24 +04:00
|
|
|
#!perl -w
|
|
|
|
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;
|
1998-06-11 07:58:24 +04:00
|
|
|
use Cwd;
|
1998-06-17 01:44:03 +04:00
|
|
|
use File::Path;
|
|
|
|
|
|
|
|
# homegrown
|
1998-06-11 07:58:24 +04:00
|
|
|
use Moz;
|
1998-06-17 01:44:03 +04:00
|
|
|
use MacCVS;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
|
|
|
@ISA = qw(Exporter);
|
1998-06-27 05:26:41 +04: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
|
|
|
|
|
|
|
#
|
|
|
|
# Utility routines
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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))
|
|
|
|
{
|
|
|
|
print "Choose a CVS session file in file dialog box:\n"; # no way to display a prompt?
|
1998-06-27 05:26:41 +04:00
|
|
|
# make sure that MacPerl is a front process
|
|
|
|
while (GetFrontProcess () != GetCurrentProcess())
|
|
|
|
{
|
|
|
|
SetFrontProcess( GetCurrentProcess() );
|
|
|
|
}
|
|
|
|
# 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-06-11 07:58:24 +04:00
|
|
|
#
|
|
|
|
# MAIN ROUTINES
|
|
|
|
#
|
|
|
|
sub Checkout()
|
|
|
|
{
|
|
|
|
_assertRightDirectory();
|
|
|
|
my($cvsfile) = _pickWithMemoryFile("::nglayout.cvsloc");
|
|
|
|
my($session) = MacCVS->new( $cvsfile );
|
|
|
|
unless (defined($session)) { die "Checkout aborted. Cannot create session file: $session" }
|
|
|
|
|
|
|
|
if ($main::pull{lizard})
|
|
|
|
{
|
|
|
|
$session->checkout("mozilla/LICENSE") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/LEGAL") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/config") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/liblayer") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/zlib") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/libutil") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/nsprpub") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/sun-java") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/nav-java") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/js") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/security/freenav") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/libpref") || die "checkout failure";
|
1998-06-27 07:07:26 +04:00
|
|
|
$session->checkout("mozilla/lib/libparse") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/layout") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/libstyle") || die "checkout failure";
|
1998-06-29 22:38:11 +04:00
|
|
|
$session->checkout("mozilla/lib/libpwcac") || die "checkout failure";
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|
|
|
|
if ($main::pull{xpcom})
|
|
|
|
{
|
|
|
|
$session->checkout("mozilla/modules/libreg ") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/xpcom") || die "checkout failure";
|
|
|
|
}
|
|
|
|
if ($main::pull{imglib})
|
|
|
|
{
|
1998-06-17 01:44:03 +04:00
|
|
|
my($IMGLIB_BRANCH) = "MODULAR_IMGLIB_BRANCH";
|
|
|
|
|
1998-06-11 07:58:24 +04:00
|
|
|
$session->checkout("mozilla/jpeg ", $IMGLIB_BRANCH) || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/libutil", $IMGLIB_BRANCH) || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/modules/libimg", $IMGLIB_BRANCH) || die "checkout failure";
|
|
|
|
}
|
|
|
|
if ($main::pull{netlib})
|
|
|
|
{
|
|
|
|
$session->checkout("mozilla/lib/xp ") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/network") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/include") || die "checkout failure";
|
|
|
|
}
|
|
|
|
if ($main::pull{nglayout})
|
|
|
|
{
|
|
|
|
$session->checkout("mozilla/base ") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/dom") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/gfx") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/htmlparser") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/layout") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/view") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/webshell") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/widget") || die "checkout failure";
|
|
|
|
}
|
|
|
|
if ($main::pull{mac})
|
|
|
|
{
|
|
|
|
$session->checkout("mozilla/build/mac ") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/cmd/macfe") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/mac/MacMemoryAllocator") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/mac/NSStdLib") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/mac/MoreFiles") || die "checkout failure";
|
|
|
|
$session->checkout("mozilla/lib/mac/NSRuntime") || die "checkout failure";
|
1998-06-27 07:07:26 +04:00
|
|
|
$session->checkout("mozilla/lib/mac/Misc") || die "checkout failure";
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# builds the dist directory
|
|
|
|
sub BuildDist()
|
|
|
|
{
|
|
|
|
unless ( $main::build{dist} ) { return;}
|
|
|
|
_assertRightDirectory();
|
|
|
|
|
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";
|
|
|
|
|
1998-06-11 07:58:24 +04:00
|
|
|
my($distlist) = [
|
1998-06-17 01:44:03 +04:00
|
|
|
#MAC_COMMON
|
|
|
|
[":mozilla:build:mac:MANIFEST", "$distdirectory:mac:common:"],
|
|
|
|
[":mozilla:lib:mac:NSStdLib:include:MANIFEST", "$distdirectory:mac:common:"],
|
|
|
|
[":mozilla:lib:mac:MacMemoryAllocator:include:MANIFEST", "$distdirectory:mac:common:"],
|
|
|
|
[":mozilla:lib:mac:Misc:MANIFEST", "$distdirectory:mac:common:"],
|
|
|
|
[":mozilla:lib:mac:MoreFiles:MANIFEST", "$distdirectory:mac:common:morefiles:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#INCLUDE
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:config:mac:MANIFEST", "$distdirectory:config:"],
|
1998-07-03 03:54:24 +04:00
|
|
|
[":mozilla:config:mac:MANIFEST_config", "$distdirectory:config:"],
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:include:MANIFEST", "$distdirectory:include:"],
|
|
|
|
[":mozilla:cmd:macfe:pch:MANIFEST", "$distdirectory:include:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#NSPR
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:nsprpub:pr:include:MANIFEST", "$distdirectory:nspr:"],
|
|
|
|
[":mozilla:nsprpub:pr:src:md:mac:MANIFEST", "$distdirectory:nspr:mac:"],
|
|
|
|
[":mozilla:nsprpub:lib:ds:MANIFEST", "$distdirectory:nspr:"],
|
|
|
|
[":mozilla:nsprpub:lib:libc:include:MANIFEST", "$distdirectory:nspr:"],
|
|
|
|
[":mozilla:nsprpub:lib:msgc:include:MANIFEST", "$distdirectory:nspr:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#JPEG
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:jpeg:MANIFEST", "$distdirectory:jpeg:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#LIBREG
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:libreg:include:MANIFEST", "$distdirectory:libreg:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#XPCOM
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:xpcom:src:MANIFEST", "$distdirectory:xpcom:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#ZLIB
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:zlib:src:MANIFEST", "$distdirectory:zlib:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#LIBUTIL
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:libutil:public:MANIFEST", "$distdirectory:libutil:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#SUN_JAVA
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:sun-java:stubs:include:MANIFEST", "$distdirectory:sun-java:"],
|
|
|
|
[":mozilla:sun-java:stubs:macjri:MANIFEST", "$distdirectory:sun-java:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#NAV_JAVA
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:nav-java:stubs:include:MANIFEST", "$distdirectory:nav-java:"],
|
|
|
|
[":mozilla:nav-java:stubs:macjri:MANIFEST", "$distdirectory:nav-java:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#JS
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:js:src:MANIFEST", "$distdirectory:js:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#SECURITY_freenav
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:security:freenav:MANIFEST", "$distdirectory:security:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#LIBPREF
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:libpref:public:MANIFEST", "$distdirectory:libpref:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#LIBIMAGE
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:modules:libimg:png:MANIFEST", "$distdirectory:libimg:"],
|
|
|
|
[":mozilla:modules:libimg:src:MANIFEST", "$distdirectory:libimg:"],
|
|
|
|
[":mozilla:modules:libimg:public:MANIFEST", "$distdirectory:libimg:"],
|
1998-06-27 05:26:41 +04:00
|
|
|
#PARSE
|
|
|
|
[":mozilla:lib:libparse:MANIFEST", "$distdirectory:libparse:"],
|
|
|
|
#OLD LAYOUT
|
|
|
|
[":mozilla:lib:layout:MANIFEST", "$distdirectory:layout:"],
|
|
|
|
#STYLE
|
|
|
|
[":mozilla:lib:libstyle:MANIFEST", "$distdirectory:libstyle:"],
|
|
|
|
#LAYERS
|
|
|
|
[":mozilla:lib:liblayer:include:MANIFEST", "$distdirectory:layers:"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#NETWORK
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:network:cache:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:client:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:cnvts:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:cstream:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:main:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:mimetype:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:util:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:about:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:certld:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:dataurl:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:file:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:ftp:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:gopher:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:http:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:js:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:mailbox:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:marimba:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:nntp:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:pop3:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:remote:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:protocol:smtp:MANIFEST", "$distdirectory:network:"],
|
|
|
|
[":mozilla:network:module:MANIFEST","$distdirectory:network:module"],
|
1998-06-11 07:58:24 +04:00
|
|
|
#BASE
|
1998-06-17 01:44:03 +04:00
|
|
|
[":mozilla:base:src:MANIFEST", "$distdirectory:base:"],
|
|
|
|
[":mozilla:base:public:MANIFEST", "$distdirectory:base:"],
|
|
|
|
#WEBSHELL
|
|
|
|
[":mozilla:webshell:public:MANIFEST", "$distdirectory:webshell:"],
|
|
|
|
#LAYOUT
|
|
|
|
[":mozilla:layout:base:public:MANIFEST", "$distdirectory:layout:"],
|
|
|
|
[":mozilla:layout:html:style:public:MANIFEST", "$distdirectory:layout:"],
|
1998-06-27 05:26:41 +04:00
|
|
|
[":mozilla:layout:html:base:src:MANIFEST", "$distdirectory:layout:"],
|
1998-06-17 02:56:31 +04:00
|
|
|
[":mozilla:layout:html:document:public:MANIFEST", "$distdirectory:layout:"],
|
1998-06-17 01:44:03 +04:00
|
|
|
#WIDGET
|
|
|
|
[":mozilla:widget:public:MANIFEST", "$distdirectory:widget:"],
|
|
|
|
#GFX
|
|
|
|
[":mozilla:gfx:src:MANIFEST", "$distdirectory:gfx:"],
|
|
|
|
#VIEW
|
|
|
|
[":mozilla:view:public:MANIFEST", "$distdirectory:view:"],
|
|
|
|
#DOM
|
|
|
|
[":mozilla:dom:public:MANIFEST", "$distdirectory:dom:"],
|
|
|
|
[":mozilla:dom:public:coreDom:MANIFEST", "$distdirectory:dom:"],
|
|
|
|
[":mozilla:dom:public:coreEvents:MANIFEST", "$distdirectory:dom:"],
|
|
|
|
[":mozilla:dom:public:events:MANIFEST", "$distdirectory:dom:"],
|
|
|
|
#HTMLPARSER
|
|
|
|
[":mozilla:htmlparser:src:MANIFEST", "$distdirectory:htmlparser:"],
|
|
|
|
|
1998-06-11 07:58:24 +04:00
|
|
|
];
|
|
|
|
foreach $a (@$distlist)
|
|
|
|
{
|
|
|
|
InstallFromManifest( $a->[0], $a->[1]);
|
|
|
|
}
|
1998-06-17 01:44:03 +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
|
|
|
}
|
|
|
|
|
|
|
|
# builds all projects
|
|
|
|
# different targets controlled by $main::build
|
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-06-27 05:26:41 +04:00
|
|
|
# clean projects
|
|
|
|
|
1998-06-17 02:56:31 +04:00
|
|
|
Moz::BuildProjectClean(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "Stubs");
|
1998-06-17 01:44:03 +04:00
|
|
|
Moz::BuildProjectClean(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp", "Stubs");
|
1998-06-17 02:56:31 +04:00
|
|
|
Moz::BuildProjectClean(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "Stubs");
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-06-27 05:26:41 +04:00
|
|
|
# shared
|
|
|
|
|
1998-06-17 02:56:31 +04:00
|
|
|
Moz::BuildProject(":mozilla:lib:mac:NSRuntime:NSRuntime.mcp");
|
|
|
|
MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:lib:mac:NSRuntime:NSRuntime$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-06-27 07:24:33 +04:00
|
|
|
Moz::BuildProject(":mozilla:lib:mac:MoreFiles:build:MoreFilesPPC.mcp", "MoreFiles$D.shlb");
|
1998-06-17 01:44:03 +04:00
|
|
|
MakeAlias(":mozilla:lib:mac:MoreFiles:build:MoreFiles$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:lib:mac:MoreFiles:build:MoreFiles$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-06-17 01:44:03 +04:00
|
|
|
BuildProject(":mozilla:nsprpub:macbuild:NSPR20PPC.mcp", "NSPR20$D.shlb");
|
|
|
|
MakeAlias(":mozilla:nsprpub:macbuild:NSPR20$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:nsprpub:macbuild:NSPR20$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-06-27 05:26:41 +04:00
|
|
|
BuildProject(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator.mcp", "MemAllocator$D.shlb");
|
1998-06-17 01:44:03 +04:00
|
|
|
MakeAlias(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:lib:mac:MacMemoryAllocator:MemAllocator$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-17 01:44:03 +04:00
|
|
|
|
|
|
|
BuildProject(":mozilla:lib:mac:NSStdLib:NSStdLib.mcp", "NSStdLib$D.shlb");
|
|
|
|
MakeAlias(":mozilla:lib:mac:NSStdLib:NSStdLib$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:lib:mac:NSStdLib:NSStdLib$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-17 01:44:03 +04:00
|
|
|
|
|
|
|
BuildProject(":mozilla:xpcom:macbuild:xpcomPPC.mcp", "xpcom$D.shlb");
|
|
|
|
MakeAlias(":mozilla:xpcom:macbuild:xpcom$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:xpcom:macbuild:xpcom$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-11 07:58:24 +04:00
|
|
|
|
1998-06-27 05:26:41 +04:00
|
|
|
BuildProject(":mozilla:jpeg:macbuild:JPEG.mcp", "JPEG$D.shlb");
|
1998-06-17 01:44:03 +04:00
|
|
|
MakeAlias(":mozilla:jpeg:macbuild:JPEG$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:jpeg:macbuild:JPEG$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-06-27 05:26:41 +04:00
|
|
|
BuildProject(":mozilla:js:macbuild:JavaScriptPPC.mcp", "JavaScriptNoJSJ$D.shlb");
|
|
|
|
MakeAlias(":mozilla:js:macbuild:JavaScript$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:js:macbuild:JavaScript$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-06-27 05:26:41 +04:00
|
|
|
BuildProject(":mozilla:modules:zlib:macbuild:zlib.mcp", "zlib$D.shlb");
|
|
|
|
MakeAlias(":mozilla:modules:zlib:macbuild:zlib$D.shlb", "$dist_dir");
|
1998-06-30 04:52:06 +04:00
|
|
|
$main::DEBUG ? MakeAlias(":mozilla:modules:zlib:macbuild:zlib$D.shlb.xSYM", "$dist_dir") : 0;
|
1998-06-27 05:26:41 +04:00
|
|
|
|
|
|
|
# static
|
|
|
|
|
|
|
|
BuildProject(":mozilla:modules:security:freenav:macbuild:NoSecurity.mcp", "Security.o");
|
|
|
|
|
|
|
|
BuildProject(":mozilla:modules:libimg:macbuild:png.mcp", "png$D.o");
|
|
|
|
|
|
|
|
BuildProject(":mozilla:modules:libimg:macbuild:libimg.mcp", "libimg$D.o");
|
|
|
|
|
|
|
|
BuildProject(":mozilla:network:macbuild:network.mcp", "networkModular$D.o");
|
1998-06-17 01:44:03 +04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
sub BuildLayoutProjects()
|
|
|
|
{
|
1998-06-27 05:26:41 +04:00
|
|
|
unless( $main::build{nglayout} ) { return; }
|
1998-06-17 01:44:03 +04:00
|
|
|
_assertRightDirectory();
|
1998-06-11 07:58:24 +04: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-06-27 05:26:41 +04:00
|
|
|
BuildProject(":mozilla:base:macbuild:base.mcp", "base$D.o");
|
|
|
|
|
1998-06-17 02:56:31 +04:00
|
|
|
BuildProject(":mozilla:htmlparser:macbuild:htmlparser.mcp", "htmlparser$D.o");
|
1998-06-17 01:44:03 +04:00
|
|
|
|
|
|
|
BuildProject(":mozilla:dom:macbuild:dom.mcp", "dom$D.o");
|
|
|
|
|
|
|
|
BuildProject(":mozilla:gfx:macbuild:gfx.mcp", "gfx$D.o");
|
|
|
|
|
|
|
|
BuildProject(":mozilla:layout:macbuild:layout.mcp", "layout$D.o");
|
|
|
|
|
1998-06-17 02:56:31 +04:00
|
|
|
BuildProject(":mozilla:webshell:macbuild:webshell.mcp", "webshell$D.o");
|
1998-06-17 01:44:03 +04:00
|
|
|
|
1998-06-27 06:45:22 +04:00
|
|
|
BuildProject(":mozilla:webshell:tests:viewer:mac:viewer.mcp", "viewer$D");
|
1998-06-17 01:44:03 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
sub BuildProjects()
|
|
|
|
{
|
|
|
|
BuildCommonProjects();
|
|
|
|
BuildLayoutProjects();
|
1998-06-11 07:58:24 +04:00
|
|
|
}
|