Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / toolkit / toolkit-tiers.mk
blob68e80172124e4c10b1cbd88dd93de910ff105c07
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)/config/js/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 ifdef MOZ_X11
88 tier_gecko_dirs += widget/src/gtkxtbin
89 endif
90 endif
92 tier_gecko_dirs += \
93 modules/libutil \
94 modules/libjar \
95 db \
96 $(NULL)
98 ifdef MOZ_PERMISSIONS
99 tier_gecko_dirs += \
100 extensions/cookie \
101 extensions/permissions \
102 $(NULL)
103 endif
105 ifdef MOZ_STORAGE
106 tier_gecko_dirs += storage
107 endif
109 ifdef MOZ_RDF
110 tier_gecko_dirs += rdf
111 endif
113 ifdef MOZ_JSDEBUGGER
114 tier_gecko_dirs += js/jsd
115 endif
117 ifdef MOZ_OGG
118 tier_gecko_dirs += \
119 media/libfishsound \
120 media/libogg \
121 media/liboggplay \
122 media/liboggz \
123 media/libtheora \
124 media/libvorbis \
125 $(NULL)
126 endif
128 ifdef MOZ_SYDNEYAUDIO
129 tier_gecko_dirs += \
130 media/libsydneyaudio \
131 $(NULL)
132 endif
134 tier_gecko_dirs += \
135 uriloader \
136 modules/libimg \
137 caps \
138 parser/expat \
139 parser/xml \
140 parser/htmlparser \
141 gfx \
142 modules/libpr0n \
143 sun-java \
144 modules/plugin \
145 dom \
146 view \
147 widget \
148 content \
149 editor \
150 layout \
151 docshell \
152 webshell \
153 embedding \
154 xpfe/appshell \
155 $(NULL)
157 # Java Embedding Plugin
158 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
159 tier_gecko_dirs += plugin/oji/JEP
160 endif
162 ifdef MOZ_XMLEXTRAS
163 tier_gecko_dirs += extensions/xmlextras
164 endif
166 ifdef MOZ_WEBSERVICES
167 tier_gecko_dirs += extensions/webservices
168 endif
170 ifdef MOZ_UNIVERSALCHARDET
171 tier_gecko_dirs += extensions/universalchardet
172 endif
174 ifdef MOZ_OJI
175 tier_gecko_dirs += \
176 js/src/liveconnect \
177 modules/oji \
178 $(NULL)
179 endif
181 ifdef ACCESSIBILITY
182 tier_gecko_dirs += accessible
183 endif
186 # tier "toolkit" - xpfe & toolkit
188 # The division of "gecko" and "toolkit" is somewhat arbitrary, and related
189 # to history where "gecko" wasn't forked between seamonkey/firefox but
190 # "toolkit" was.
193 tier_toolkit_dirs += chrome profile
195 # This must preceed xpfe
196 ifdef MOZ_JPROF
197 tier_toolkit_dirs += tools/jprof
198 endif
200 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
201 tier_toolkit_dirs += xpfe/bootstrap/appleevents
202 endif
204 tier_toolkit_dirs += \
205 xpfe \
206 toolkit/components \
207 $(NULL)
209 ifdef MOZ_ENABLE_XREMOTE
210 tier_toolkit_dirs += widget/src/xremoteclient
211 endif
213 ifdef MOZ_SPELLCHECK
214 tier_toolkit_dirs += extensions/spellcheck
215 endif
217 tier_toolkit_dirs += toolkit
219 ifdef MOZ_XPINSTALL
220 tier_toolkit_dirs += xpinstall
221 endif
223 ifdef MOZ_PSM
224 tier_toolkit_dirs += security/manager
225 else
226 tier_toolkit_dirs += security/manager/boot/public security/manager/ssl/public
227 endif
229 ifdef MOZ_PREF_EXTENSIONS
230 tier_toolkit_dirs += extensions/pref
231 endif
233 # JavaXPCOM JNI code is compiled into libXUL
234 ifdef MOZ_JAVAXPCOM
235 tier_toolkit_dirs += extensions/java/xpcom/src
236 endif
238 ifndef BUILD_STATIC_LIBS
239 ifneq (,$(MOZ_ENABLE_GTK2))
240 tier_toolkit_dirs += embedding/browser/gtk
241 endif
242 endif
244 ifndef BUILD_STATIC_LIBS
245 tier_toolkit_dirs += toolkit/library
246 endif
248 ifdef MOZ_ENABLE_LIBXUL
249 tier_toolkit_dirs += xpcom/stub
250 endif
252 ifdef NS_TRACE_MALLOC
253 tier_toolkit_dirs += tools/trace-malloc
254 endif
256 ifdef MOZ_ENABLE_GNOME_COMPONENT
257 tier_toolkit_dirs += toolkit/system/gnome
258 endif
260 ifdef MOZ_ENABLE_DBUS
261 tier_toolkit_dirs += toolkit/system/dbus
262 endif
264 ifdef MOZ_LEAKY
265 tier_toolkit_dirs += tools/leaky
266 endif
268 ifdef MOZ_MAPINFO
269 tier_toolkit_dirs += tools/codesighs
270 endif
272 ifdef ENABLE_TESTS
273 tier_toolkit_dirs += testing/mochitest
274 endif
276 ifdef MOZ_TREE_FREETYPE
277 tier_external_dirs += modules/freetype2
278 endif