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
)/js
/src
/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
93 tier_gecko_dirs
+= ipc
/ipcd
102 ifdef MOZ_PERMISSIONS
105 extensions
/permissions \
110 tier_gecko_dirs
+= storage
114 tier_gecko_dirs
+= rdf
118 tier_gecko_dirs
+= js
/jsd
127 media
/libsydneyaudio \
156 # Java Embedding Plugin
157 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
158 tier_gecko_dirs
+= plugin
/oji
/JEP
162 tier_gecko_dirs
+= extensions
/xmlextras
165 ifdef MOZ_WEBSERVICES
166 tier_gecko_dirs
+= extensions
/webservices
169 ifdef MOZ_UNIVERSALCHARDET
170 tier_gecko_dirs
+= extensions
/universalchardet
181 tier_gecko_dirs
+= accessible
185 # tier "toolkit" - xpfe & toolkit
187 # The division of "gecko" and "toolkit" is somewhat arbitrary, and related
188 # to history where "gecko" wasn't forked between seamonkey/firefox but
192 tier_toolkit_dirs
+= chrome profile
194 # This must preceed xpfe
196 tier_toolkit_dirs
+= tools
/jprof
199 ifneq (,$(filter mac cocoa
,$(MOZ_WIDGET_TOOLKIT
)))
200 tier_toolkit_dirs
+= xpfe
/bootstrap
/appleevents
203 tier_toolkit_dirs
+= \
208 ifdef MOZ_ENABLE_XREMOTE
209 tier_toolkit_dirs
+= widget
/src
/xremoteclient
213 tier_toolkit_dirs
+= extensions
/spellcheck
216 tier_toolkit_dirs
+= toolkit
219 tier_toolkit_dirs
+= xpinstall
223 tier_toolkit_dirs
+= security
/manager
225 tier_toolkit_dirs
+= security
/manager
/boot
/public security
/manager
/ssl
/public
228 ifdef MOZ_PREF_EXTENSIONS
229 tier_toolkit_dirs
+= extensions
/pref
232 # JavaXPCOM JNI code is compiled into libXUL
234 tier_toolkit_dirs
+= extensions
/java
/xpcom
/src
237 ifndef BUILD_STATIC_LIBS
238 ifneq (,$(MOZ_ENABLE_GTK2
))
239 tier_toolkit_dirs
+= embedding
/browser
/gtk
243 ifndef BUILD_STATIC_LIBS
244 tier_toolkit_dirs
+= toolkit
/library
247 ifdef MOZ_ENABLE_LIBXUL
248 tier_toolkit_dirs
+= xpcom
/stub
251 ifdef NS_TRACE_MALLOC
252 tier_toolkit_dirs
+= tools
/trace-malloc
255 ifdef MOZ_ENABLE_GNOME_COMPONENT
256 tier_toolkit_dirs
+= toolkit
/system
/gnome
259 ifdef MOZ_ENABLE_DBUS
260 tier_toolkit_dirs
+= toolkit
/system
/dbus
264 tier_toolkit_dirs
+= tools
/leaky
268 tier_toolkit_dirs
+= tools
/codesighs
272 tier_toolkit_dirs
+= testing
/mochitest