Bug 475419. Make sure to set up our user font set no matter what the ordering of...
[mozilla-central.git] / toolkit / toolkit-tiers.mk
blobb827acfe87d31255e49ec1e9d1a15cdf5c8d52ab
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 tier_external_dirs += modules/lcms
76 # tier "gecko" - core components
79 tier_gecko_dirs += \
80 js/src/xpconnect \
81 intl/chardet \
82 $(NULL)
84 ifdef MOZ_ENABLE_GTK2
85 ifdef MOZ_X11
86 tier_gecko_dirs += widget/src/gtkxtbin
87 endif
88 endif
90 tier_gecko_dirs += \
91 modules/libutil \
92 modules/libjar \
93 db \
94 $(NULL)
96 ifdef MOZ_PERMISSIONS
97 tier_gecko_dirs += \
98 extensions/cookie \
99 extensions/permissions \
100 $(NULL)
101 endif
103 ifdef MOZ_STORAGE
104 tier_gecko_dirs += storage
105 endif
107 ifdef MOZ_RDF
108 tier_gecko_dirs += rdf
109 endif
111 ifdef MOZ_JSDEBUGGER
112 tier_gecko_dirs += js/jsd
113 endif
115 ifdef MOZ_OGG
116 tier_gecko_dirs += \
117 media/libfishsound \
118 media/libogg \
119 media/liboggplay \
120 media/liboggz \
121 media/libtheora \
122 media/libvorbis \
123 $(NULL)
124 endif
126 ifdef MOZ_SYDNEYAUDIO
127 tier_gecko_dirs += \
128 media/libsydneyaudio \
129 $(NULL)
130 endif
132 tier_gecko_dirs += \
133 uriloader \
134 modules/libimg \
135 caps \
136 parser/expat \
137 parser/xml \
138 parser/htmlparser \
139 gfx \
140 modules/libpr0n \
141 sun-java \
142 modules/plugin \
143 dom \
144 view \
145 widget \
146 content \
147 editor \
148 layout \
149 docshell \
150 webshell \
151 embedding \
152 xpfe/appshell \
153 $(NULL)
155 # Java Embedding Plugin
156 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
157 tier_gecko_dirs += plugin/oji/JEP
158 endif
160 ifdef MOZ_XMLEXTRAS
161 tier_gecko_dirs += extensions/xmlextras
162 endif
164 ifdef MOZ_WEBSERVICES
165 tier_gecko_dirs += extensions/webservices
166 endif
168 ifdef MOZ_UNIVERSALCHARDET
169 tier_gecko_dirs += extensions/universalchardet
170 endif
172 ifdef MOZ_OJI
173 tier_gecko_dirs += \
174 js/src/liveconnect \
175 modules/oji \
176 $(NULL)
177 endif
179 ifdef ACCESSIBILITY
180 tier_gecko_dirs += accessible
181 endif
184 # tier "toolkit" - xpfe & toolkit
186 # The division of "gecko" and "toolkit" is somewhat arbitrary, and related
187 # to history where "gecko" wasn't forked between seamonkey/firefox but
188 # "toolkit" was.
191 tier_toolkit_dirs += chrome profile
193 # This must preceed xpfe
194 ifdef MOZ_JPROF
195 tier_toolkit_dirs += tools/jprof
196 endif
198 ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
199 tier_toolkit_dirs += xpfe/bootstrap/appleevents
200 endif
202 tier_toolkit_dirs += \
203 xpfe \
204 toolkit/components \
205 $(NULL)
207 ifdef MOZ_ENABLE_XREMOTE
208 tier_toolkit_dirs += widget/src/xremoteclient
209 endif
211 ifdef MOZ_SPELLCHECK
212 tier_toolkit_dirs += extensions/spellcheck
213 endif
215 tier_toolkit_dirs += toolkit
217 ifdef MOZ_XPINSTALL
218 tier_toolkit_dirs += xpinstall
219 endif
221 ifdef MOZ_PSM
222 tier_toolkit_dirs += security/manager
223 else
224 tier_toolkit_dirs += security/manager/boot/public security/manager/ssl/public
225 endif
227 ifdef MOZ_PREF_EXTENSIONS
228 tier_toolkit_dirs += extensions/pref
229 endif
231 # JavaXPCOM JNI code is compiled into libXUL
232 ifdef MOZ_JAVAXPCOM
233 tier_toolkit_dirs += extensions/java/xpcom/src
234 endif
236 ifndef BUILD_STATIC_LIBS
237 ifneq (,$(MOZ_ENABLE_GTK2))
238 tier_toolkit_dirs += embedding/browser/gtk
239 endif
240 endif
242 ifndef BUILD_STATIC_LIBS
243 tier_toolkit_dirs += toolkit/library
244 endif
246 ifdef MOZ_ENABLE_LIBXUL
247 tier_toolkit_dirs += xpcom/stub
248 endif
250 ifdef NS_TRACE_MALLOC
251 tier_toolkit_dirs += tools/trace-malloc
252 endif
254 ifdef MOZ_ENABLE_GNOME_COMPONENT
255 tier_toolkit_dirs += toolkit/system/gnome
256 endif
258 ifdef MOZ_ENABLE_DBUS
259 tier_toolkit_dirs += toolkit/system/dbus
260 endif
262 ifdef MOZ_LEAKY
263 tier_toolkit_dirs += tools/leaky
264 endif
266 ifdef MOZ_MAPINFO
267 tier_toolkit_dirs += tools/codesighs
268 endif
270 ifdef ENABLE_TESTS
271 tier_toolkit_dirs += testing/mochitest
272 endif
274 ifdef MOZ_TREE_FREETYPE
275 tier_external_dirs += modules/freetype2
276 endif