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
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.
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 *****
39 $(error toolkit-tiers.mk is not compatible with
--enable-libxul-sdk
=)
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
54 # tier "external" - 3rd party individual libraries
57 ifndef MOZ_NATIVE_JPEG
58 tier_external_dirs
+= jpeg
61 # Installer needs standalone libjar, hence standalone zlib
63 tier_external_dirs
+= modules
/zlib
/standalone
68 tier_external_dirs
+= modules
/libbz2
70 tier_external_dirs
+= modules
/libmar
73 ifndef MOZ_NATIVE_LCMS
74 tier_external_dirs
+= modules
/lcms
78 # tier "gecko" - core components
88 tier_gecko_dirs
+= widget
/src
/gtkxtbin
101 extensions
/permissions \
106 tier_gecko_dirs
+= storage
110 tier_gecko_dirs
+= rdf
114 tier_gecko_dirs
+= js
/jsd
128 ifdef MOZ_SYDNEYAUDIO
130 media
/libsydneyaudio \
157 # Java Embedding Plugin
158 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
159 tier_gecko_dirs
+= plugin
/oji
/JEP
163 tier_gecko_dirs
+= extensions
/xmlextras
166 ifdef MOZ_WEBSERVICES
167 tier_gecko_dirs
+= extensions
/webservices
170 ifdef MOZ_UNIVERSALCHARDET
171 tier_gecko_dirs
+= extensions
/universalchardet
182 tier_gecko_dirs
+= accessible
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
193 tier_toolkit_dirs
+= chrome profile
195 # This must preceed xpfe
197 tier_toolkit_dirs
+= tools
/jprof
200 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
201 tier_toolkit_dirs
+= xpfe
/bootstrap
/appleevents
204 tier_toolkit_dirs
+= \
209 ifdef MOZ_ENABLE_XREMOTE
210 tier_toolkit_dirs
+= widget
/src
/xremoteclient
214 tier_toolkit_dirs
+= extensions
/spellcheck
217 tier_toolkit_dirs
+= toolkit
220 tier_toolkit_dirs
+= xpinstall
224 tier_toolkit_dirs
+= security
/manager
226 tier_toolkit_dirs
+= security
/manager
/boot
/public security
/manager
/ssl
/public
229 ifdef MOZ_PREF_EXTENSIONS
230 tier_toolkit_dirs
+= extensions
/pref
233 # JavaXPCOM JNI code is compiled into libXUL
235 tier_toolkit_dirs
+= extensions
/java
/xpcom
/src
238 ifndef BUILD_STATIC_LIBS
239 ifneq (,$(MOZ_ENABLE_GTK2
))
240 tier_toolkit_dirs
+= embedding
/browser
/gtk
244 ifndef BUILD_STATIC_LIBS
245 tier_toolkit_dirs
+= toolkit
/library
248 ifdef MOZ_ENABLE_LIBXUL
249 tier_toolkit_dirs
+= xpcom
/stub
252 ifdef NS_TRACE_MALLOC
253 tier_toolkit_dirs
+= tools
/trace-malloc
256 ifdef MOZ_ENABLE_GNOME_COMPONENT
257 tier_toolkit_dirs
+= toolkit
/system
/gnome
260 ifdef MOZ_ENABLE_DBUS
261 tier_toolkit_dirs
+= toolkit
/system
/dbus
265 tier_toolkit_dirs
+= tools
/leaky
269 tier_toolkit_dirs
+= tools
/codesighs
273 tier_toolkit_dirs
+= testing
/mochitest
276 ifdef MOZ_TREE_FREETYPE
277 tier_external_dirs
+= modules
/freetype2