Bug 922422 - Disable browser_tabview_bug630157.js and browser_tabview_bug631662.js...
[gecko.git] / toolkit / toolkit.mozbuild
blob1bfbee8e53a9ce5da0a3a6ce5b4c338ce85f3984
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['COMPILE_ENVIRONMENT']:
10     if not CONFIG['MOZ_NATIVE_NSPR']:
11         add_tier_dir('nspr', 'config/nspr')
13     add_tier_dir('external', 'config/external')
15     if not CONFIG['MOZ_NATIVE_NSS']:
16         add_tier_dir('nss', 'security/build')
18     include('/config/js/js.mozbuild')
20 if CONFIG['MOZ_CONTENT_SANDBOX']:
21     add_tier_dir('sandbox', 'security/sandbox')
23 # the signing related bits of libmar depend on nss
24 if CONFIG['MOZ_UPDATER']:
25     add_tier_dir('platform', 'modules/libmar')
27 if CONFIG['NS_TRACE_MALLOC']:
28     add_tier_dir('platform', 'tools/trace-malloc/lib')
30 if CONFIG['MOZ_DMD']:
31     add_tier_dir('platform', 'memory/replace/dmd')
33 if CONFIG['MOZ_TREE_FREETYPE']:
34     add_tier_dir('platform', 'modules/freetype2', static=True)
36 add_tier_dir('platform', 'xpcom')
38 add_tier_dir('platform', [
39     'modules/libpref',
40     'intl',
41     'netwerk',
44 if CONFIG['MOZ_AUTH_EXTENSION']:
45     add_tier_dir('platform', 'extensions/auth')
47 if CONFIG['MOZ_UPDATER']:
48     add_tier_dir('platform', 'other-licenses/bsdiff')
50 # Gecko/Core components.
52 add_tier_dir('platform', ['ipc', 'js/ipc'])
54 add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
56 add_tier_dir('platform', ['modules/libjar', 'storage'])
58 if CONFIG['MOZ_PERMISSIONS']:
59     add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
61 add_tier_dir('platform', 'rdf')
63 if CONFIG['MOZ_JSDEBUGGER']:
64     add_tier_dir('platform', 'js/jsd')
66 if CONFIG['MOZ_WEBRTC']:
67     add_tier_dir('platform', [
68         'media/webrtc',
69         'media/mtransport/third_party',
70         'media/mtransport/build',
71         'media/mtransport/standalone',
72     ])
74 if CONFIG['MOZ_OMX_PLUGIN']:
75     add_tier_dir('platform', [
76         'media/omx-plugin/lib/ics/libutils',
77         'media/omx-plugin/lib/ics/libstagefright',
78         'media/omx-plugin/lib/gb/libutils',
79         'media/omx-plugin/lib/gb/libstagefright',
80         'media/omx-plugin/lib/gb/libstagefright_color_conversion',
81         'media/omx-plugin/lib/gb235/libstagefright',
82         'media/omx-plugin/lib/froyo/libstagefright',
83         'media/omx-plugin',
84         'media/omx-plugin/gb',
85         'media/omx-plugin/gb235',
86         'media/omx-plugin/froyo',
87         'media/omx-plugin/lib/hc/libstagefright',
88         'media/omx-plugin/hc',
89     ])
91 if CONFIG['ENABLE_TESTS']:
92     add_tier_dir('platform', 'testing/specialpowers')
94 if CONFIG['ENABLE_TESTS']:
95     add_tier_dir('platform', 'testing/gtest')
97 add_tier_dir('platform', [
98     'uriloader',
99     'caps',
100     'parser',
101     'gfx',
102     'image',
103     'dom',
104     'view',
105     'widget',
106     'content',
107     'editor',
108     'layout',
109     'docshell',
110     'embedding',
111     'xpfe/appshell'
114 # This needs to be built after the gfx/ directory
115 # to ensure all dependencies for skia (e.g. mozalloc, xpcom)
116 # have been built
117 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
118     add_tier_dir('platform', 'other-licenses/skia-npapi')
120 if CONFIG['MOZ_UNIVERSALCHARDET']:
121     add_tier_dir('platform', 'extensions/universalchardet')
123 if CONFIG['ACCESSIBILITY']:
124     add_tier_dir('platform', 'accessible')
126 # toolkit
128 add_tier_dir('platform', 'profile')
130 # This must precede xpfe.
131 if CONFIG['MOZ_JPROF']:
132     add_tier_dir('platform', 'tools/jprof')
134 add_tier_dir('platform', 'tools/profiler')
136 add_tier_dir('platform', 'xpfe/components')
138 if CONFIG['MOZ_ENABLE_XREMOTE']:
139     add_tier_dir('platform', 'widget/xremoteclient')
141 if CONFIG['MOZ_SPELLCHECK']:
142     add_tier_dir('platform', 'extensions/spellcheck')
144 add_tier_dir('platform', 'security/manager')
146 add_tier_dir('platform', 'toolkit')
148 if CONFIG['MOZ_PREF_EXTENSIONS']:
149     add_tier_dir('platform', 'extensions/pref')
151 add_tier_dir('platform', 'services')
152 add_tier_dir('platform', 'startupcache')
153 add_tier_dir('platform', 'js/ductwork/debugger')
154 add_tier_dir('platform', 'other-licenses/snappy')
156 if CONFIG['MOZ_GIO_COMPONENT']:
157     add_tier_dir('platform', 'extensions/gio')
159 # Applications can cheat and ask for code to be
160 # built before libxul so it can be linked into libxul.
161 add_tier_dir('platform', app_libxul_dirs)
162 add_tier_dir('platform', app_libxul_static_dirs, static=True)
164 add_tier_dir('platform', 'toolkit/library')
166 if CONFIG['MOZ_REPLACE_MALLOC']:
167     add_tier_dir('platform', 'memory/replace')
169 if CONFIG['NS_TRACE_MALLOC']:
170     add_tier_dir('platform', 'tools/trace-malloc')
172 if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
173     add_tier_dir('platform', 'toolkit/system/gnome')
175 # if QtNetwork is present, it will do its own network monitoring
176 if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
177     add_tier_dir('platform', 'toolkit/system/dbus')
179 add_tier_dir('platform', 'addon-sdk')
181 if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
182     add_tier_dir('platform', 'testing/marionette')
184 add_tier_dir('platform', 'tools/quitter')
186 if CONFIG['ENABLE_TESTS']:
187     add_tier_dir('platform', [
188         'testing/mochitest',
189         'testing/xpcshell',
190         'testing/tools/screenshot',
191         'testing/peptest',
192         'testing/profiles',
193         'testing/mozbase',
194         'testing/modules',
195     ])
197     if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
198             add_tier_dir('platform', [
199                 'media/webrtc/signaling/test',
200                 'media/mtransport/test',
201             ])