forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
embed.mk
189 lines (164 loc) · 3.65 KB
/
embed.mk
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
#
# 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):
#
#
DEPTH = .
topsrcdir = .
srcdir = .
VPATH = .
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/build/unix/modules.mk
EMBEDDING_EXPORTS = \
dbm \
modules/libreg \
js \
xpcom \
js/src/xpconnect \
js/src/liveconnect \
modules/zlib \
widget/timer \
include \
modules/libutil \
netwerk \
security \
uriloader \
uriloader/exthandler \
intl \
modules/libpref \
modules/libimg \
gfx \
widget \
modules/oji \
modules/plugin \
modules/libjar \
modules/libimg/png \
caps \
expat \
htmlparser \
dom \
view \
content \
layout \
db \
rdf \
docshell \
webshell \
embedding \
editor \
sun-java \
profile \
xpfe \
extensions \
mailnews \
xpinstall \
$(NULL)
EMBEDDING_INSTALLS = \
dbm \
modules/libreg \
js \
xpcom \
js/src/xpconnect \
js/src/liveconnect \
modules/libutil \
modules/zlib \
modules/zlib/standalone \
netwerk \
security \
uriloader \
intl \
modules/libpref \
modules/libimg \
gfx \
modules/oji \
modules/libjar \
caps \
expat \
htmlparser \
dom \
view \
content \
layout \
rdf \
docshell \
webshell \
widget \
embedding \
editor \
xpfe/appshell \
xpfe/components/shistory \
extensions/cookie \
extensions/psm-glue \
embedding/config \
$(NULL)
DIRS = $(NULL)
DIRS += config build
ifdef MOZ_L10N
DIRS += l10n
endif
ifdef USE_ELF_DYNSTR_GC
DIRS += tools/elf-dynstr-gc
endif
DIRS += $(NSPRPUB_DIR)
ifeq ($(exporting),1)
DIRS += \
$(EMBEDDING_EXPORTS) \
$(NULL)
else
DIRS += \
$(EMBEDDING_INSTALLS) \
$(NULL)
endif
ifdef MOZ_STATIC_COMPONENTS
DIRS += modules/staticmod
endif
STATIC_MAKEFILES := $(NSPRPUB_DIR)
GARBAGE += dist
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
dependencies.beos config/autoconf.mk \
$(shell cd $(topsrcdir); . ./allmakefiles.sh; echo $${MAKEFILES})
include $(topsrcdir)/config/rules.mk
# rdf chrome are not included, but could be. I did not include them because you may disable INCLUDE_XUL
# lwbrk unicharutil are not include because they are busted right now.
CONFIG_RELEASE_EMBED_OPTIONS := \
--enable-gfx-toolkit=gtk \
--enable-optimize \
--enable-strip-libs \
--enable-elf-dynstr-gc \
--disable-mailnews \
--disable-debug \
--disable-tests \
--enable-static-components=necko,necko2,cookie,psmglue,caps,docshell,editor,txmgr,txtsvc,jar50,jsurl,nspng,nsgif,pref,shistory,strres,uriloader \
$(NULL)
config_release_embed:
$(DEPTH)/configure $(CONFIG_RELEASE_EMBED_OPTIONS)
build_embed:
$(MAKE) -f embed.mk export exporting=1
$(MAKE) -f embed.mk
### does not seem to work....
# I was hoping that we could just pull SeaMonkeyCore, but I think I need editor and l10n :-(
NSPR_CO_MODULE = mozilla/nsprpub
NSPR_CO_TAG = NSPRPUB_CLIENT_BRANCH
PSM_CO_MODULE= mozilla/security
PSM_CO_TAG = SECURITY_CLIENT_BRANCH
pull:
cd ..; \
cvs co -P SeaMonkeyAll&& \
cvs co -P -r $(PSM_CO_TAG) $(PSM_CO_MODULE) && \
cvs co -P -r $(NSPR_CO_TAG) $(NSPR_CO_MODULE)