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']
24 if CONFIG['NS_TRACE_MALLOC']:
25 DIRS += ['/tools/trace-malloc/lib']
28 '/config/external/freetype2',
35 if CONFIG['MOZ_AUTH_EXTENSION']:
36 DIRS += ['/extensions/auth']
38 if CONFIG['MOZ_UPDATER']:
39 DIRS += ['/other-licenses/bsdiff']
41 # Gecko/Core components.
54 if CONFIG['MOZ_PERMISSIONS']:
57 '/extensions/permissions',
64 if CONFIG['MOZ_WEBRTC']:
67 '/media/mtransport/third_party',
68 '/media/mtransport/build',
69 '/media/mtransport/standalone',
72 if CONFIG['MOZ_OMX_PLUGIN']:
74 '/media/omx-plugin/lib/ics/libutils',
75 '/media/omx-plugin/lib/ics/libstagefright',
76 '/media/omx-plugin/lib/ics/libvideoeditorplayer',
77 '/media/omx-plugin/lib/gb/libutils',
78 '/media/omx-plugin/lib/gb/libstagefright',
79 '/media/omx-plugin/lib/gb/libstagefright_color_conversion',
80 '/media/omx-plugin/lib/gb235/libstagefright',
82 '/media/omx-plugin/gb',
83 '/media/omx-plugin/gb235',
84 '/media/omx-plugin/lib/hc/libstagefright',
85 '/media/omx-plugin/hc',
86 '/media/omx-plugin/kk',
89 if CONFIG['ENABLE_TESTS']:
90 DIRS += ['/testing/specialpowers']
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 DIRS += ['/other-licenses/skia-npapi']
116 if CONFIG['MOZ_UNIVERSALCHARDET']:
117 DIRS += ['/extensions/universalchardet']
119 if CONFIG['ACCESSIBILITY']:
120 DIRS += ['/accessible']
122 DIRS += ['/accessible/ipc']
128 # This must precede xpfe.
129 if CONFIG['MOZ_JPROF']:
130 DIRS += ['/tools/jprof']
137 if CONFIG['MOZ_ENABLE_XREMOTE']:
138 DIRS += ['/widget/xremoteclient']
140 if CONFIG['MOZ_SPELLCHECK']:
141 DIRS += ['/extensions/spellcheck']
148 if CONFIG['MOZ_PREF_EXTENSIONS']:
149 DIRS += ['/extensions/pref']
154 '/js/ductwork/debugger',
155 '/other-licenses/snappy',
158 if CONFIG['MOZ_GIO_COMPONENT']:
159 DIRS += ['/extensions/gio']
162 '/toolkit/library/StaticXULComponentsEnd',
166 if CONFIG['NS_TRACE_MALLOC']:
167 DIRS += ['/tools/trace-malloc']
169 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
170 DIRS += ['/toolkit/system/gnome']
172 # if QtNetwork is present, it will do its own network monitoring
173 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
174 DIRS += ['/toolkit/system/dbus']
176 DIRS += ['/addon-sdk']
178 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
179 DIRS += ['/testing/marionette']
183 '/media/gmp-clearkey/0.1',
186 if CONFIG['ENABLE_TESTS']:
188 '/testing/mochitest',
190 '/testing/tools/screenshot',
194 '/testing/web-platform',
197 if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
199 '/media/webrtc/signaling/test',
200 '/media/mtransport/test',