1 # vim: set filetype=python:
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 if CONFIG['LIBXUL_SDK']:
7 error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=')
9 if CONFIG['MOZ_CONTENT_SANDBOX'] or CONFIG['MOZ_GMP_SANDBOX']:
10 add_tier_dir('sandbox', 'security/sandbox')
12 # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
14 add_tier_dir('platform', 'security/certverifier')
16 # Depends on certverifier
17 add_tier_dir('platform', 'security/apps')
19 # the signing related bits of libmar depend on nss
20 if CONFIG['MOZ_UPDATER']:
21 add_tier_dir('platform', 'modules/libmar')
23 if CONFIG['NS_TRACE_MALLOC']:
24 add_tier_dir('platform', 'tools/trace-malloc/lib')
27 add_tier_dir('platform', 'memory/replace/dmd')
29 if CONFIG['MOZ_TREE_FREETYPE']:
30 add_tier_dir('platform', 'modules/freetype2', static=True)
32 add_tier_dir('platform', 'xpcom')
34 add_tier_dir('platform', [
40 if CONFIG['MOZ_AUTH_EXTENSION']:
41 add_tier_dir('platform', 'extensions/auth')
43 if CONFIG['MOZ_UPDATER']:
44 add_tier_dir('platform', 'other-licenses/bsdiff')
46 # Gecko/Core components.
48 add_tier_dir('platform', ['ipc', 'js/ipc'])
50 add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
52 add_tier_dir('platform', 'media/libyuv')
54 add_tier_dir('platform', ['modules/libjar', 'storage'])
56 if CONFIG['MOZ_PERMISSIONS']:
57 add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
59 add_tier_dir('platform', 'rdf')
61 if CONFIG['MOZ_WEBRTC']:
62 add_tier_dir('platform', [
64 'media/mtransport/third_party',
65 'media/mtransport/build',
66 'media/mtransport/standalone',
69 if CONFIG['MOZ_OMX_PLUGIN']:
70 add_tier_dir('platform', [
71 'media/omx-plugin/lib/ics/libutils',
72 'media/omx-plugin/lib/ics/libstagefright',
73 'media/omx-plugin/lib/ics/libvideoeditorplayer',
74 'media/omx-plugin/lib/gb/libutils',
75 'media/omx-plugin/lib/gb/libstagefright',
76 'media/omx-plugin/lib/gb/libstagefright_color_conversion',
77 'media/omx-plugin/lib/gb235/libstagefright',
78 'media/omx-plugin/lib/froyo/libstagefright',
80 'media/omx-plugin/gb',
81 'media/omx-plugin/gb235',
82 'media/omx-plugin/froyo',
83 'media/omx-plugin/lib/hc/libstagefright',
84 'media/omx-plugin/hc',
85 'media/omx-plugin/kk',
88 if CONFIG['ENABLE_TESTS']:
89 add_tier_dir('platform', 'testing/specialpowers')
91 add_tier_dir('platform', 'testing/gtest')
93 add_tier_dir('platform', [
110 # This needs to be built after the gfx/ directory
111 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
113 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
114 add_tier_dir('platform', 'other-licenses/skia-npapi')
116 if CONFIG['MOZ_UNIVERSALCHARDET']:
117 add_tier_dir('platform', 'extensions/universalchardet')
119 if CONFIG['ACCESSIBILITY']:
120 add_tier_dir('platform', 'accessible')
124 add_tier_dir('platform', 'profile')
126 # This must precede xpfe.
127 if CONFIG['MOZ_JPROF']:
128 add_tier_dir('platform', 'tools/jprof')
130 add_tier_dir('platform', 'tools/profiler')
132 add_tier_dir('platform', 'xpfe/components')
134 if CONFIG['MOZ_ENABLE_XREMOTE']:
135 add_tier_dir('platform', 'widget/xremoteclient')
137 if CONFIG['MOZ_SPELLCHECK']:
138 add_tier_dir('platform', 'extensions/spellcheck')
140 add_tier_dir('platform', 'security/manager')
142 add_tier_dir('platform', 'toolkit')
144 if CONFIG['MOZ_PREF_EXTENSIONS']:
145 add_tier_dir('platform', 'extensions/pref')
147 add_tier_dir('platform', 'services')
148 add_tier_dir('platform', 'startupcache')
149 add_tier_dir('platform', 'js/ductwork/debugger')
150 add_tier_dir('platform', 'other-licenses/snappy')
152 if CONFIG['MOZ_GIO_COMPONENT']:
153 add_tier_dir('platform', 'extensions/gio')
155 # Applications can cheat and ask for code to be
156 # built before libxul so it can be linked into libxul.
157 add_tier_dir('platform', app_libxul_dirs)
158 add_tier_dir('platform', app_libxul_static_dirs, static=True)
160 add_tier_dir('platform', 'toolkit/library')
162 if CONFIG['MOZ_REPLACE_MALLOC']:
163 add_tier_dir('platform', 'memory/replace')
165 if CONFIG['NS_TRACE_MALLOC']:
166 add_tier_dir('platform', 'tools/trace-malloc')
168 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
169 add_tier_dir('platform', 'toolkit/system/gnome')
171 # if QtNetwork is present, it will do its own network monitoring
172 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
173 add_tier_dir('platform', 'toolkit/system/dbus')
175 add_tier_dir('platform', 'addon-sdk')
177 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
178 add_tier_dir('platform', 'testing/marionette')
180 add_tier_dir('platform', 'tools/quitter')
182 if CONFIG['ENABLE_TESTS']:
183 add_tier_dir('platform', [
186 'testing/tools/screenshot',
192 if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
193 add_tier_dir('platform', [
194 'media/webrtc/signaling/test',
195 'media/mtransport/test',