Bumping manifests a=b2g-bump
[gecko.git] / toolkit / toolkit.mozbuild
blobb0bd02d149aa17b1ee8c61edafacab018fb7b483
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']
12 DIRS += [
13     # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
14     # builds fail.
15     '/security/certverifier',
16     # Depends on certverifier
17     '/security/apps',
20 # the signing related bits of libmar depend on nss
21 if CONFIG['MOZ_UPDATER']:
22     DIRS += ['/modules/libmar']
24 DIRS += [
25     '/config/external/freetype2',
26     '/xpcom',
27     '/modules/libpref',
28     '/intl',
29     '/netwerk',
32 if CONFIG['MOZ_AUTH_EXTENSION']:
33     DIRS += ['/extensions/auth']
35 if CONFIG['MOZ_UPDATER']:
36     DIRS += ['/other-licenses/bsdiff']
38 # Gecko/Core components.
40 DIRS += [
41     '/ipc',
42     '/js/ipc',
43     '/hal',
44     '/js/xpconnect',
45     '/intl/chardet',
46     '/media/libyuv',
47     '/modules/libjar',
48     '/storage',
51 if CONFIG['MOZ_PERMISSIONS']:
52     DIRS += [
53         '/extensions/cookie',
54         '/extensions/permissions',
55     ]
57 DIRS += [
58     '/rdf',
61 if CONFIG['MOZ_WEBRTC']:
62     DIRS += [
63         '/media/webrtc',
64         '/media/mtransport/third_party',
65         '/media/mtransport/build',
66         '/media/mtransport/standalone',
67     ]
69 if CONFIG['MOZ_OMX_PLUGIN']:
70     DIRS += [
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',
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',
84     ]
86 if CONFIG['ENABLE_TESTS']:
87     DIRS += ['/testing/specialpowers']
89 DIRS += [
90     '/testing/gtest',
91     '/uriloader',
92     '/caps',
93     '/parser',
94     '/gfx',
95     '/image',
96     '/dom',
97     '/view',
98     '/widget',
99     '/content',
100     '/editor',
101     '/layout',
102     '/docshell',
103     '/embedding',
104     '/xpfe/appshell'
107 # This needs to be built after the gfx/ directory
108 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
109 # have been built
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']
118 else:
119     DIRS += ['/accessible/ipc']
121 # toolkit
123 DIRS += ['/profile']
125 # This must precede xpfe.
126 if CONFIG['MOZ_JPROF']:
127     DIRS += ['/tools/jprof']
129 DIRS += [
130     '/tools/profiler',
131     '/xpfe/components',
134 if CONFIG['MOZ_ENABLE_XREMOTE']:
135     DIRS += ['/widget/xremoteclient']
137 if CONFIG['MOZ_SPELLCHECK']:
138     DIRS += ['/extensions/spellcheck']
140 DIRS += [
141     '/security/manager',
142     '/toolkit',
145 if CONFIG['MOZ_PREF_EXTENSIONS']:
146     DIRS += ['/extensions/pref']
148 DIRS += [
149     '/services',
150     '/startupcache',
151     '/js/ductwork/debugger',
152     '/other-licenses/snappy',
155 if CONFIG['MOZ_GIO_COMPONENT']:
156     DIRS += ['/extensions/gio']
158 DIRS += [
159     '/toolkit/library/StaticXULComponentsEnd',
160     '/toolkit/library',
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']
175 DIRS += [
176     '/tools/quitter',
177     '/media/gmp-clearkey/0.1',
180 if CONFIG['ENABLE_TESTS']:
181     DIRS += [
182         '/testing/mochitest',
183         '/testing/xpcshell',
184         '/testing/tools/screenshot',
185         '/testing/profiles',
186         '/testing/mozbase',
187         '/testing/modules',
188         '/testing/web-platform',
189     ]
191     if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
192             DIRS += [
193                 '/media/webrtc/signaling/test',
194                 '/media/mtransport/test',
195             ]