Bug 1073336 part 5 - Add AnimationPlayerCollection::PlayerUpdated; r=dbaron
[gecko.git] / toolkit / toolkit.mozbuild
blob2dcea0d5122cdbffec25858cca888de3aa77c114
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 if CONFIG['NS_TRACE_MALLOC']:
25     DIRS += ['/tools/trace-malloc/lib']
27 DIRS += [
28     '/config/external/freetype2',
29     '/xpcom',
30     '/modules/libpref',
31     '/intl',
32     '/netwerk',
35 if CONFIG['MOZ_AUTH_EXTENSION']:
36     DIRS += ['/extensions/auth']
38 if CONFIG['MOZ_UPDATER']:
39     DIRS += ['/other-licenses/bsdiff']
41 # Gecko/Core components.
43 DIRS += [
44     '/ipc',
45     '/js/ipc',
46     '/hal',
47     '/js/xpconnect',
48     '/intl/chardet',
49     '/media/libyuv',
50     '/modules/libjar',
51     '/storage',
54 if CONFIG['MOZ_PERMISSIONS']:
55     DIRS += [
56         '/extensions/cookie',
57         '/extensions/permissions',
58     ]
60 DIRS += [
61     '/rdf',
64 if CONFIG['MOZ_WEBRTC']:
65     DIRS += [
66         '/media/webrtc',
67         '/media/mtransport/third_party',
68         '/media/mtransport/build',
69         '/media/mtransport/standalone',
70     ]
72 if CONFIG['MOZ_OMX_PLUGIN']:
73     DIRS += [
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',
81         '/media/omx-plugin',
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',
87     ]
89 if CONFIG['ENABLE_TESTS']:
90     DIRS += ['/testing/specialpowers']
92 DIRS += [
93     '/testing/gtest',
94     '/uriloader',
95     '/caps',
96     '/parser',
97     '/gfx',
98     '/image',
99     '/dom',
100     '/view',
101     '/widget',
102     '/content',
103     '/editor',
104     '/layout',
105     '/docshell',
106     '/embedding',
107     '/xpfe/appshell'
110 # This needs to be built after the gfx/ directory
111 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
112 # have been built
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']
121 else:
122     DIRS += ['/accessible/ipc']
124 # toolkit
126 DIRS += ['/profile']
128 # This must precede xpfe.
129 if CONFIG['MOZ_JPROF']:
130     DIRS += ['/tools/jprof']
132 DIRS += [
133     '/tools/profiler',
134     '/xpfe/components',
137 if CONFIG['MOZ_ENABLE_XREMOTE']:
138     DIRS += ['/widget/xremoteclient']
140 if CONFIG['MOZ_SPELLCHECK']:
141     DIRS += ['/extensions/spellcheck']
143 DIRS += [
144     '/security/manager',
145     '/toolkit',
148 if CONFIG['MOZ_PREF_EXTENSIONS']:
149     DIRS += ['/extensions/pref']
151 DIRS += [
152     '/services',
153     '/startupcache',
154     '/js/ductwork/debugger',
155     '/other-licenses/snappy',
158 if CONFIG['MOZ_GIO_COMPONENT']:
159     DIRS += ['/extensions/gio']
161 DIRS += [
162     '/toolkit/library/StaticXULComponentsEnd',
163     '/toolkit/library',
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']
181 DIRS += [
182     '/tools/quitter',
183     '/media/gmp-clearkey/0.1',
186 if CONFIG['ENABLE_TESTS']:
187     DIRS += [
188         '/testing/mochitest',
189         '/testing/xpcshell',
190         '/testing/tools/screenshot',
191         '/testing/profiles',
192         '/testing/mozbase',
193         '/testing/modules',
194         '/testing/web-platform',
195     ]
197     if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
198             DIRS += [
199                 '/media/webrtc/signaling/test',
200                 '/media/mtransport/test',
201             ]