Backed out changeset db55605b2a4c (relanding bug 121341)
[wine-gecko.git] / toolkit / toolkit-tiers.mk
blobf193f3bd55702eb891e8a922e88bd6db5ec79cb9
1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Original Code is the Mozilla build system.
16 # The Initial Developer of the Original Code is
17 # the Mozilla Foundation <http://www.mozilla.org/>.
18 # Portions created by the Initial Developer are Copyright (C) 2006
19 # the Initial Developer. All Rights Reserved.
21 # Contributor(s):
22 # Benjamin Smedberg <benjamin@smedbergs.us> (Initial Code)
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 ifdef LIBXUL_SDK
39 $(error toolkit-tiers.mk is not compatible with --enable-libxul-sdk=)
40 endif
42 include $(topsrcdir)/config/nspr/build.mk
43 include $(topsrcdir)/js/src/build.mk
44 include $(topsrcdir)/xpcom/build.mk
45 include $(topsrcdir)/netwerk/build.mk
47 TIERS += \
48 external \
49 gecko \
50 toolkit \
51 $(NULL)
54 # tier "external" - 3rd party individual libraries
57 ifndef MOZ_NATIVE_JPEG
58 tier_external_dirs += jpeg
59 endif
61 # Installer needs standalone libjar, hence standalone zlib
62 ifdef MOZ_INSTALLER
63 tier_external_dirs += modules/zlib/standalone
64 endif
66 ifdef MOZ_UPDATER
67 ifndef MOZ_NATIVE_BZ2
68 tier_external_dirs += modules/libbz2
69 endif
70 tier_external_dirs += modules/libmar
71 endif
73 ifndef MOZ_NATIVE_LCMS
74 tier_external_dirs += modules/lcms
75 endif
78 # tier "gecko" - core components
81 tier_gecko_dirs += \
82 js/src/xpconnect \
83 intl/chardet \
84 $(NULL)
86 ifdef MOZ_ENABLE_GTK2
87 tier_gecko_dirs += widget/src/gtkxtbin
88 endif
90 ifdef MOZ_IPCD
91 tier_gecko_dirs += ipc/ipcd
92 endif
94 tier_gecko_dirs += \
95 modules/libutil \
96 modules/libjar \
97 db \
98 $(NULL)
100 ifdef MOZ_PERMISSIONS
101 tier_gecko_dirs += \
102 extensions/cookie \
103 extensions/permissions \
104 $(NULL)
105 endif
107 ifdef MOZ_STORAGE
108 tier_gecko_dirs += storage
109 endif
111 ifdef MOZ_RDF
112 tier_gecko_dirs += rdf
113 endif
115 ifdef MOZ_JSDEBUGGER
116 tier_gecko_dirs += js/jsd
117 endif
119 ifdef MOZ_OGG
120 tier_gecko_dirs += \
121 media/libfishsound \
122 media/libogg \
123 media/liboggplay \
124 media/liboggplay_audio \
125 media/liboggz \
126 media/libtheora \
127 media/libvorbis \
128 $(NULL)
129 endif
131 tier_gecko_dirs += \
132 uriloader \
133 modules/libimg \
134 caps \
135 parser/expat \
136 parser/xml \
137 parser/htmlparser \
138 gfx \
139 modules/libpr0n \
140 sun-java \
141 modules/plugin \
142 dom \
143 view \
144 widget \
145 content \
146 editor \
147 layout \
148 docshell \
149 webshell \
150 embedding \
151 xpfe/appshell \
152 $(NULL)
154 # Java Embedding Plugin
155 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
156 tier_gecko_dirs += plugin/oji/JEP
157 endif
159 ifdef MOZ_XMLEXTRAS
160 tier_gecko_dirs += extensions/xmlextras
161 endif
163 ifdef MOZ_WEBSERVICES
164 tier_gecko_dirs += extensions/webservices
165 endif
167 ifdef MOZ_UNIVERSALCHARDET
168 tier_gecko_dirs += extensions/universalchardet
169 endif
171 ifdef MOZ_OJI
172 tier_gecko_dirs += \
173 js/src/liveconnect \
174 modules/oji \
175 $(NULL)
176 endif
178 ifdef ACCESSIBILITY
179 tier_gecko_dirs += accessible
180 endif
183 # tier "toolkit" - xpfe & toolkit
185 # The division of "gecko" and "toolkit" is somewhat arbitrary, and related
186 # to history where "gecko" wasn't forked between seamonkey/firefox but
187 # "toolkit" was.
190 ifdef MOZ_XUL_APP
191 tier_toolkit_dirs += chrome
192 else
193 ifdef MOZ_XUL
194 tier_toolkit_dirs += rdf/chrome
195 else
196 tier_toolkit_dirs += embedding/minimo/chromelite
197 endif
198 endif
200 tier_toolkit_dirs += profile
202 # This must preceed xpfe
203 ifdef MOZ_JPROF
204 tier_toolkit_dirs += tools/jprof
205 endif
207 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
208 tier_toolkit_dirs += xpfe/bootstrap/appleevents
209 endif
211 tier_toolkit_dirs += \
212 xpfe \
213 toolkit/components \
214 $(NULL)
216 ifndef MOZ_XUL_APP
217 tier_toolkit_dirs += themes
218 endif
220 ifdef MOZ_ENABLE_XREMOTE
221 tier_toolkit_dirs += widget/src/xremoteclient
222 endif
224 ifdef MOZ_SPELLCHECK
225 tier_toolkit_dirs += extensions/spellcheck
226 endif
228 ifdef MOZ_XUL_APP
229 tier_toolkit_dirs += toolkit
230 endif
232 ifdef MOZ_XPINSTALL
233 tier_toolkit_dirs += xpinstall
234 endif
236 ifdef MOZ_PSM
237 tier_toolkit_dirs += security/manager
238 else
239 tier_toolkit_dirs += security/manager/boot/public security/manager/ssl/public
240 endif
242 ifdef MOZ_PREF_EXTENSIONS
243 tier_toolkit_dirs += extensions/pref
244 endif
246 # JavaXPCOM JNI code is compiled into libXUL
247 ifdef MOZ_JAVAXPCOM
248 tier_toolkit_dirs += extensions/java/xpcom/src
249 endif
251 ifndef BUILD_STATIC_LIBS
252 ifdef MOZ_XUL_APP
253 ifneq (,$(MOZ_ENABLE_GTK2))
254 tier_toolkit_dirs += embedding/browser/gtk
255 endif
256 endif
257 endif
259 ifdef MOZ_XUL_APP
260 ifndef BUILD_STATIC_LIBS
261 tier_toolkit_dirs += toolkit/library
262 endif
263 endif
265 ifdef MOZ_ENABLE_LIBXUL
266 tier_toolkit_dirs += xpcom/stub
267 endif
269 ifdef NS_TRACE_MALLOC
270 tier_toolkit_dirs += tools/trace-malloc
271 endif
273 ifdef MOZ_LDAP_XPCOM
274 tier_toolkit_staticdirs += directory/c-sdk
275 tier_toolkit_dirs += directory/xpcom
276 endif
278 ifdef MOZ_ENABLE_GNOME_COMPONENT
279 tier_toolkit_dirs += toolkit/system/gnome
280 endif
282 ifdef MOZ_ENABLE_DBUS
283 tier_toolkit_dirs += toolkit/system/dbus
284 endif
286 ifdef MOZ_LEAKY
287 tier_toolkit_dirs += tools/leaky
288 endif
290 ifdef MOZ_MAPINFO
291 tier_toolkit_dirs += tools/codesighs
292 endif
294 ifdef MOZ_MOCHITEST
295 tier_toolkit_dirs += testing/mochitest
296 endif