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 DIRS += ['/security/sandbox']
13 # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
15 '/security/certverifier',
16 # Depends on certverifier
20 # the signing related bits of libmar depend on nss
21 if CONFIG['MOZ_UPDATER']:
22 DIRS += ['/modules/libmar']
25 '/config/external/freetype2',
32 if CONFIG['MOZ_AUTH_EXTENSION']:
33 DIRS += ['/extensions/auth']
35 if CONFIG['MOZ_UPDATER']:
36 DIRS += ['/other-licenses/bsdiff']
38 # Gecko/Core components.
51 if CONFIG['MOZ_PERMISSIONS']:
54 '/extensions/permissions',
61 if CONFIG['MOZ_WEBRTC']:
64 '/media/mtransport/third_party',
65 '/media/mtransport/build',
66 '/media/mtransport/standalone',
69 if CONFIG['MOZ_OMX_PLUGIN']:
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',
79 '/media/omx-plugin/gb',
80 '/media/omx-plugin/gb235',
81 '/media/omx-plugin/lib/hc/libstagefright',
82 '/media/omx-plugin/hc',
83 '/media/omx-plugin/kk',
86 if CONFIG['ENABLE_TESTS']:
87 DIRS += ['/testing/specialpowers']
107 # This needs to be built after the gfx/ directory
108 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
110 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
111 DIRS += ['/other-licenses/skia-npapi']
113 if CONFIG['MOZ_UNIVERSALCHARDET']:
114 DIRS += ['/extensions/universalchardet']
116 if CONFIG['ACCESSIBILITY']:
117 DIRS += ['/accessible']
119 DIRS += ['/accessible/ipc']
125 # This must precede xpfe.
126 if CONFIG['MOZ_JPROF']:
127 DIRS += ['/tools/jprof']
134 if CONFIG['MOZ_ENABLE_XREMOTE']:
135 DIRS += ['/widget/xremoteclient']
137 if CONFIG['MOZ_SPELLCHECK']:
138 DIRS += ['/extensions/spellcheck']
145 if CONFIG['MOZ_PREF_EXTENSIONS']:
146 DIRS += ['/extensions/pref']
151 '/js/ductwork/debugger',
152 '/other-licenses/snappy',
155 if CONFIG['MOZ_GIO_COMPONENT']:
156 DIRS += ['/extensions/gio']
159 '/toolkit/library/StaticXULComponentsEnd',
163 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
164 DIRS += ['/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 DIRS += ['/toolkit/system/dbus']
170 DIRS += ['/addon-sdk']
172 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
173 DIRS += ['/testing/marionette']
177 '/media/gmp-clearkey/0.1',
180 if CONFIG['ENABLE_TESTS']:
182 '/testing/mochitest',
184 '/testing/tools/screenshot',
188 '/testing/web-platform',
191 if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
193 '/media/webrtc/signaling/test',
194 '/media/mtransport/test',