mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Experimental Mac makefile
This commit is contained in:
parent
9b54fbae32
commit
a9c999d6bb
298
nglayout.mac
Normal file
298
nglayout.mac
Normal file
@ -0,0 +1,298 @@
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||
# for the specific language governing rights and limitations under the
|
||||
# NPL.
|
||||
#
|
||||
# The Initial Developer of this code under the NPL is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||
# Reserved.
|
||||
|
||||
######################################################################
|
||||
# Mac verstion of nglayout.mak, the windows makefile
|
||||
# EXPERIMENTAL
|
||||
# EXPERIMENTAL
|
||||
# EXPERIMENTAL
|
||||
# comments to atotic@netscape.com for now
|
||||
######################################################################
|
||||
|
||||
MOZ_TOP = mozilla
|
||||
# This makefile is designed to make building the nglayout viewer
|
||||
# application easy.
|
||||
|
||||
#
|
||||
# Command macro defines
|
||||
#
|
||||
|
||||
CVSCO = cvs -q co -P
|
||||
|
||||
# Branch tags we use
|
||||
IMGLIB_BRANCH = MODULAR_IMGLIB_BRANCH
|
||||
NETLIB_BRANCH = MODULAR_NETLIB_BRANCH
|
||||
XPCOM_BRANCH = XPCOM_BRANCH
|
||||
RAPTOR_BRANCH = RAPTOR_BRANCH
|
||||
|
||||
# CVS commands to pull the appropriate branch versions
|
||||
CVSCO_XPCOM = {CVSCO} -r {XPCOM_BRANCH}
|
||||
CVSCO_IMGLIB = {CVSCO} -r {IMGLIB_BRANCH}
|
||||
CVSCO_NETLIB = {CVSCO} -r {NETLIB_BRANCH}
|
||||
CVSCO_RAPTOR = {CVSCO}
|
||||
CVSCO_LIZARD = {CVSCO}
|
||||
|
||||
# The list of directories that need to be built to build the
|
||||
# standalone nglayout test program. The order is important. The
|
||||
# DIST_DIRS need to be built before the RAPTOR_DIRS.
|
||||
|
||||
DIST_DIRS = <20>
|
||||
nsprpub <09>
|
||||
include <09>
|
||||
jpeg <09>
|
||||
"modules/libreg" <09>
|
||||
xpcom <09>
|
||||
"modules/zlib" <09>
|
||||
"modules/libutil" <09>
|
||||
sun-java <09>
|
||||
nav-java <09>
|
||||
js <09>
|
||||
"modules/security/freenav" <09>
|
||||
"modules/libpref" <09>
|
||||
"modules/libimg" <09>
|
||||
base <20>
|
||||
"lib/xp" <09>
|
||||
"lib/libnet"
|
||||
|
||||
# The list of directories to build the nglayout layout engine and
|
||||
# related libraries.
|
||||
|
||||
RAPTOR_DIRS = <09>
|
||||
htmlparser <09>
|
||||
dom <09>
|
||||
gfx <09>
|
||||
view <09>
|
||||
widget <09>
|
||||
layout <09>
|
||||
webshell
|
||||
|
||||
# Main rules
|
||||
|
||||
all Ÿ all_dist all_nglayout
|
||||
|
||||
export Ÿ export_dist export_nglayout
|
||||
|
||||
libs Ÿ libs_dist libs_nglayout
|
||||
|
||||
install Ÿ install_dist install_nglayout
|
||||
|
||||
depend Ÿ depend_dist depend_nglayout
|
||||
|
||||
clobber Ÿ clobber_dist clobber_nglayout
|
||||
cd {MOZ_SRC}\{MOZ_TOP}
|
||||
-rd /s /q dist
|
||||
|
||||
clobber_all Ÿ clobber_all_dist clobber_all_nglayout
|
||||
cd {MOZ_SRC}\{MOZ_TOP}
|
||||
-rd /s /q dist
|
||||
|
||||
######################################################################
|
||||
|
||||
# Rule to build subdirectories
|
||||
|
||||
{DIST_DIRS} {RAPTOR_DIRS} Ÿ
|
||||
#!if "{WINOS}" == "WIN95"
|
||||
# @echo +++ make: cannot recursively make on win95 using command.com, use w95make.
|
||||
#!else
|
||||
echo +++ make: %MAKE_ARGS% in {MAKEDIR}\$@
|
||||
cd $@
|
||||
{NMAKE} -f {THAT_MAKEFILE} %%MAKE_ARGS%%
|
||||
cd {MAKEDIR}
|
||||
#!endif
|
||||
|
||||
######################################################################
|
||||
|
||||
# Rules for pulling the source from the cvs repository
|
||||
|
||||
pull_all Ÿ pull_lizard pull_xpcom pull_imglib pull_netlib pull_nglayout pull_mac
|
||||
|
||||
pull_lizard Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/LICENSE"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/LEGAL"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/config"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/lib/liblayer"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/modules/zlib"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/modules/libutil"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/nsprpub"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/sun-java"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/nav-java"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/js"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/modules/security/freenav"
|
||||
{CVSCO_XPCOM} "{MOZ_TOP}/modules/libpref"
|
||||
|
||||
pull_xpcom Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_XPCOM} "{MOZ_TOP}/modules/libreg"
|
||||
{CVSCO_XPCOM} "{MOZ_TOP}/xpcom"
|
||||
|
||||
pull_imglib Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_IMGLIB} "{MOZ_TOP}/jpeg"
|
||||
{CVSCO_IMGLIB} "{MOZ_TOP}/modules/libutil"
|
||||
{CVSCO_IMGLIB} "{MOZ_TOP}/modules/libimg"
|
||||
|
||||
pull_netlib Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_NETLIB} "{MOZ_TOP}/lib/xp"
|
||||
{CVSCO_NETLIB} "{MOZ_TOP}/lib/libnet"
|
||||
{CVSCO_NETLIB} "{MOZ_TOP}/include"
|
||||
|
||||
pull_nglayout Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/base"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/dom"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/gfx"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/htmlparser"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/layout"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/view"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/webshell"
|
||||
{CVSCO_RAPTOR} "{MOZ_TOP}/widget"
|
||||
|
||||
pull_mac Ÿ
|
||||
cd {MOZ_SRC}
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/build/mac"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/cmd/macfe"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/MacMemoryAllocator"
|
||||
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/NSStdLib"
|
||||
|
||||
######################################################################
|
||||
|
||||
# Build rules for the "dist" portion. The "dist" contains those things
|
||||
# which are imported by the nglayout test programs.
|
||||
|
||||
all_dist Ÿ
|
||||
@cd {MOZ_SRC}\{MOZ_TOP}
|
||||
{NMAKE} -f {THIS_MAKEFILE} export_dist
|
||||
{NMAKE} -f {THIS_MAKEFILE} libs_dist
|
||||
{NMAKE} -f {THIS_MAKEFILE} install_dist
|
||||
|
||||
export_dist Ÿ
|
||||
set MAKE_ARGS export
|
||||
|
||||
export_dist Ÿ {DIST_DIRS}
|
||||
|
||||
libs_dist Ÿ
|
||||
set MAKE_ARGS libs
|
||||
|
||||
libs_dist Ÿ {DIST_DIRS}
|
||||
|
||||
install_dist Ÿ
|
||||
set MAKE_ARGS install
|
||||
|
||||
install_dist Ÿ {DIST_DIRS}
|
||||
|
||||
depend_dist Ÿ
|
||||
set MAKE_ARGS depend
|
||||
|
||||
depend_dist Ÿ {DIST_DIRS}
|
||||
|
||||
clobber_dist Ÿ
|
||||
set MAKE_ARGS clobber
|
||||
|
||||
clobber_dist Ÿ {DIST_DIRS}
|
||||
|
||||
clobber_all_dist Ÿ
|
||||
set MAKE_ARGS clobber_all
|
||||
|
||||
clobber_all_dist Ÿ {DIST_DIRS}
|
||||
|
||||
######################################################################
|
||||
|
||||
# Build rules for the "nglayout" portion. This builds the nglayout software
|
||||
# including the sample webshell viewer application.
|
||||
|
||||
all_nglayout Ÿ
|
||||
cd {MOZ_SRC}\{MOZ_TOP}
|
||||
{NMAKE} -f {THIS_MAKEFILE} export_nglayout
|
||||
{NMAKE} -f {THIS_MAKEFILE} libs_nglayout
|
||||
{NMAKE} -f {THIS_MAKEFILE} install_nglayout
|
||||
|
||||
export_nglayout Ÿ
|
||||
set MAKE_ARGS export
|
||||
|
||||
export_nglayout Ÿ {RAPTOR_DIRS}
|
||||
|
||||
libs_nglayout Ÿ
|
||||
set MAKE_ARGS libs
|
||||
|
||||
libs_nglayout Ÿ {RAPTOR_DIRS}
|
||||
|
||||
install_nglayout Ÿ
|
||||
set MAKE_ARGS install
|
||||
|
||||
install_nglayout Ÿ {RAPTOR_DIRS}
|
||||
|
||||
depend_nglayout Ÿ
|
||||
set MAKE_ARGS=depend
|
||||
|
||||
depend_nglayout Ÿ {RAPTOR_DIRS}
|
||||
|
||||
clobber_nglayout Ÿ
|
||||
set MAKE_ARGS=clobber
|
||||
|
||||
clobber_all_nglayout Ÿ
|
||||
set MAKE_ARGS=clobber_all
|
||||
|
||||
clobber_all_nglayout Ÿ {RAPTOR_DIRS}
|
||||
|
||||
######################################################################
|
||||
|
||||
# Build nglayout Doc++ documentation
|
||||
DOCXX = {MOZ_TOOLS}\bin\docxx
|
||||
DOCXX_RAPTOR = {DOCXX} -H -A -p -f -B c Ÿ\fake_banner-file_name -j -a
|
||||
DOCXX_DESTDIR = {MOZ_SRC}\{MOZ_TOP}\dist\documentation
|
||||
|
||||
doc_nglayout Ÿ
|
||||
-rm -rf {DOCXX_DESTDIR}
|
||||
-@mkdir {DOCXX_DESTDIR}
|
||||
@for %d in (nglayout xpcom img dom netlib} do \
|
||||
{DOCXX_RAPTOR} -d {DOCXX_DESTDIR}\%d {MOZ_SRC}\{MOZ_TOP}\dist\public\%d\*.h
|
||||
@echo Documentation written to {DOCXX_DESTDIR}
|
||||
|
||||
######################################################################
|
||||
|
||||
# Build tarball
|
||||
dummy=`beep`
|
||||
|
||||
DATE = `Date -d -s`
|
||||
|
||||
TAR = tar
|
||||
ZIP = {MOZ_TOOLS}\bin\zip
|
||||
GZIP = gzip
|
||||
|
||||
TARBALL = {MOZ_SRC}\win-{DATE}.tar
|
||||
TARBALL_ZIP = {MOZ_SRC}\win-{DATE}.zip
|
||||
|
||||
TARFILES = mozilla README\\nglayout
|
||||
|
||||
tarballs Ÿ tarball_zip tarball_gz
|
||||
|
||||
tarball_zip Ÿ prepare_for_tarballing
|
||||
@echo Making {TARBALL_ZIP}
|
||||
cd {MOZ_SRC}
|
||||
rm -f {TARBALL_ZIP}
|
||||
{ZIP} -9 -r -q {TARBALL_ZIP} {TARFILES}
|
||||
|
||||
tarball_gz Ÿ prepare_for_tarballing
|
||||
@echo Making {TARBALL}
|
||||
cd {MOZ_SRC}
|
||||
rm -f {TARBALL} {TARBALL}.gz
|
||||
{TAR} cf {TARBALL} {TARFILES}
|
||||
@echo Making gzip of {TARBALL}
|
||||
{GZIP} -9 -q {TARBALL}
|
||||
|
||||
prepare_for_tarballing Ÿ
|
||||
{NMAKE} -f {THIS_MAKEFILE} clobber clobber_all
|
Loading…
Reference in New Issue
Block a user