forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nglayout.mac
304 lines (232 loc) · 7.38 KB
/
nglayout.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
######################################################################
# Mac verstion of nglayout.mak, the windows makefile
# EXPERIMENTAL
# EXPERIMENTAL
# EXPERIMENTAL
# comments to [email protected] 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 = ¶
nsprpub ¶
include ¶
jpeg ¶
"modules/libreg" ¶
xpcom ¶
"modules/zlib" ¶
"modules/libutil" ¶
sun-java ¶
nav-java ¶
js ¶
"modules/security/freenav" ¶
"modules/libpref" ¶
"modules/libimg" ¶
base ¶
"lib/xp" ¶
"lib/libnet"
# The list of directories to build the nglayout layout engine and
# related libraries.
RAPTOR_DIRS = ¶
htmlparser ¶
dom ¶
gfx ¶
view ¶
widget ¶
layout ¶
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"
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/MoreFiles"
{CVSCO_LIZARD} "{MOZ_TOP}/lib/mac/NSRuntime"
######################################################################
# 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