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_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 add_tier_dir('platform', 'config/external/freetype2')
31 add_tier_dir('platform', 'xpcom')
33 add_tier_dir('platform', [
39 if CONFIG['MOZ_AUTH_EXTENSION']:
40 add_tier_dir('platform', 'extensions/auth')
42 if CONFIG['MOZ_UPDATER']:
43 add_tier_dir('platform', 'other-licenses/bsdiff')
45 # Gecko/Core components.
47 add_tier_dir('platform', ['ipc', 'js/ipc'])
49 add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
51 add_tier_dir('platform', 'media/libyuv')
53 add_tier_dir('platform', ['modules/libjar', 'storage'])
55 if CONFIG['MOZ_PERMISSIONS']:
56 add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
58 add_tier_dir('platform', 'rdf')
60 if CONFIG['MOZ_WEBRTC']:
61 add_tier_dir('platform', [
63 'media/mtransport/third_party',
64 'media/mtransport/build',
65 'media/mtransport/standalone',
68 if CONFIG['MOZ_OMX_PLUGIN']:
69 add_tier_dir('platform', [
70 'media/omx-plugin/lib/ics/libutils',
71 'media/omx-plugin/lib/ics/libstagefright',
72 'media/omx-plugin/lib/ics/libvideoeditorplayer',
73 'media/omx-plugin/lib/gb/libutils',
74 'media/omx-plugin/lib/gb/libstagefright',
75 'media/omx-plugin/lib/gb/libstagefright_color_conversion',
76 'media/omx-plugin/lib/gb235/libstagefright',
77 'media/omx-plugin/lib/froyo/libstagefright',
79 'media/omx-plugin/gb',
80 'media/omx-plugin/gb235',
81 'media/omx-plugin/froyo',
82 'media/omx-plugin/lib/hc/libstagefright',
83 'media/omx-plugin/hc',
84 'media/omx-plugin/kk',
87 if CONFIG['ENABLE_TESTS']:
88 add_tier_dir('platform', 'testing/specialpowers')
90 add_tier_dir('platform', 'testing/gtest')
92 add_tier_dir('platform', [
109 # This needs to be built after the gfx/ directory
110 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
112 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
113 add_tier_dir('platform', 'other-licenses/skia-npapi')
115 if CONFIG['MOZ_UNIVERSALCHARDET']:
116 add_tier_dir('platform', 'extensions/universalchardet')
118 if CONFIG['ACCESSIBILITY']:
119 add_tier_dir('platform', 'accessible')
123 add_tier_dir('platform', 'profile')
125 # This must precede xpfe.
126 if CONFIG['MOZ_JPROF']:
127 add_tier_dir('platform', 'tools/jprof')
129 add_tier_dir('platform', 'tools/profiler')
131 add_tier_dir('platform', 'xpfe/components')
133 if CONFIG['MOZ_ENABLE_XREMOTE']:
134 add_tier_dir('platform', 'widget/xremoteclient')
136 if CONFIG['MOZ_SPELLCHECK']:
137 add_tier_dir('platform', 'extensions/spellcheck')
139 add_tier_dir('platform', 'security/manager')
141 add_tier_dir('platform', 'toolkit')
143 if CONFIG['MOZ_PREF_EXTENSIONS']:
144 add_tier_dir('platform', 'extensions/pref')
146 add_tier_dir('platform', 'services')
147 add_tier_dir('platform', 'startupcache')
148 add_tier_dir('platform', 'js/ductwork/debugger')
149 add_tier_dir('platform', 'other-licenses/snappy')
151 if CONFIG['MOZ_GIO_COMPONENT']:
152 add_tier_dir('platform', 'extensions/gio')
154 add_tier_dir('platform', 'toolkit/library/StaticXULComponentsEnd')
155 add_tier_dir('platform', 'toolkit/library')
157 if CONFIG['MOZ_REPLACE_MALLOC']:
158 add_tier_dir('platform', 'memory/replace')
160 if CONFIG['NS_TRACE_MALLOC']:
161 add_tier_dir('platform', 'tools/trace-malloc')
163 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
164 add_tier_dir('platform', 'toolkit/system/gnome')
166 # if QtNetwork is present, it will do its own network monitoring
167 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
168 add_tier_dir('platform', 'toolkit/system/dbus')
170 add_tier_dir('platform', 'addon-sdk')
172 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
173 add_tier_dir('platform', 'testing/marionette')
175 add_tier_dir('platform', 'tools/quitter')
177 if CONFIG['ENABLE_TESTS']:
178 add_tier_dir('platform', [
181 'testing/tools/screenshot',
187 if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
188 add_tier_dir('platform', [
189 'media/webrtc/signaling/test',
190 'media/mtransport/test',