2013-02-26 01:19:09 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
if CONFIG['LIBXUL_SDK']:
|
|
|
|
error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=')
|
|
|
|
|
2013-11-07 05:37:45 +04:00
|
|
|
if CONFIG['COMPILE_ENVIRONMENT']:
|
|
|
|
if not CONFIG['MOZ_NATIVE_NSPR']:
|
|
|
|
add_tier_dir('nspr', 'config/nspr')
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-11-07 05:37:45 +04:00
|
|
|
add_tier_dir('external', 'config/external')
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-11-07 05:37:45 +04:00
|
|
|
if not CONFIG['MOZ_NATIVE_NSS']:
|
|
|
|
add_tier_dir('nss', 'security/build')
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-11-07 05:37:45 +04:00
|
|
|
include('/config/js/js.mozbuild')
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-08-12 23:58:35 +04:00
|
|
|
if CONFIG['MOZ_CONTENT_SANDBOX']:
|
|
|
|
add_tier_dir('sandbox', 'security/sandbox')
|
|
|
|
|
2013-08-10 02:01:08 +04:00
|
|
|
# the signing related bits of libmar depend on nss
|
|
|
|
if CONFIG['MOZ_UPDATER']:
|
|
|
|
add_tier_dir('platform', 'modules/libmar')
|
|
|
|
|
2013-02-26 01:19:09 +04:00
|
|
|
if CONFIG['NS_TRACE_MALLOC']:
|
|
|
|
add_tier_dir('platform', 'tools/trace-malloc/lib')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_DMD']:
|
|
|
|
add_tier_dir('platform', 'memory/replace/dmd')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_TREE_FREETYPE']:
|
|
|
|
add_tier_dir('platform', 'modules/freetype2', static=True)
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'xpcom')
|
|
|
|
|
|
|
|
add_tier_dir('platform', [
|
|
|
|
'modules/libpref',
|
|
|
|
'intl',
|
|
|
|
'netwerk',
|
|
|
|
])
|
|
|
|
|
|
|
|
if CONFIG['MOZ_AUTH_EXTENSION']:
|
|
|
|
add_tier_dir('platform', 'extensions/auth')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_UPDATER']:
|
|
|
|
add_tier_dir('platform', 'other-licenses/bsdiff')
|
|
|
|
|
|
|
|
# Gecko/Core components.
|
|
|
|
|
|
|
|
add_tier_dir('platform', ['ipc', 'js/ipc'])
|
|
|
|
|
|
|
|
add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet'])
|
|
|
|
|
|
|
|
add_tier_dir('platform', ['modules/libjar', 'storage'])
|
|
|
|
|
|
|
|
if CONFIG['MOZ_PERMISSIONS']:
|
|
|
|
add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions'])
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'rdf')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_JSDEBUGGER']:
|
|
|
|
add_tier_dir('platform', 'js/jsd')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
|
|
|
add_tier_dir('platform', [
|
|
|
|
'media/webrtc',
|
|
|
|
'media/mtransport/third_party',
|
|
|
|
'media/mtransport/build',
|
|
|
|
'media/mtransport/standalone',
|
|
|
|
])
|
|
|
|
|
2013-08-10 06:32:41 +04:00
|
|
|
if CONFIG['MOZ_OMX_PLUGIN']:
|
2013-08-10 07:01:31 +04:00
|
|
|
add_tier_dir('platform', [
|
2013-08-10 06:32:41 +04:00
|
|
|
'media/omx-plugin/lib/ics/libutils',
|
|
|
|
'media/omx-plugin/lib/ics/libstagefright',
|
|
|
|
'media/omx-plugin/lib/gb/libutils',
|
|
|
|
'media/omx-plugin/lib/gb/libstagefright',
|
|
|
|
'media/omx-plugin/lib/gb/libstagefright_color_conversion',
|
|
|
|
'media/omx-plugin/lib/gb235/libstagefright',
|
|
|
|
'media/omx-plugin/lib/froyo/libstagefright',
|
|
|
|
'media/omx-plugin',
|
|
|
|
'media/omx-plugin/gb',
|
|
|
|
'media/omx-plugin/gb235',
|
|
|
|
'media/omx-plugin/froyo',
|
|
|
|
'media/omx-plugin/lib/hc/libstagefright',
|
|
|
|
'media/omx-plugin/hc',
|
2013-08-10 07:01:31 +04:00
|
|
|
])
|
2013-08-10 06:32:41 +04:00
|
|
|
|
2013-02-26 01:19:09 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
add_tier_dir('platform', 'testing/specialpowers')
|
|
|
|
|
2013-03-11 22:47:40 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
2013-02-26 01:19:09 +04:00
|
|
|
add_tier_dir('platform', 'testing/gtest')
|
|
|
|
|
|
|
|
add_tier_dir('platform', [
|
|
|
|
'uriloader',
|
|
|
|
'caps',
|
|
|
|
'parser',
|
|
|
|
'gfx',
|
|
|
|
'image',
|
|
|
|
'dom',
|
|
|
|
'view',
|
|
|
|
'widget',
|
|
|
|
'content',
|
|
|
|
'editor',
|
|
|
|
'layout',
|
|
|
|
'docshell',
|
|
|
|
'embedding',
|
|
|
|
'xpfe/appshell'
|
|
|
|
])
|
|
|
|
|
|
|
|
# This needs to be built after the gfx/ directory
|
|
|
|
# to ensure all dependencies for skia (e.g. mozalloc, xpcom)
|
|
|
|
# have been built
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
add_tier_dir('platform', 'other-licenses/skia-npapi')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_UNIVERSALCHARDET']:
|
|
|
|
add_tier_dir('platform', 'extensions/universalchardet')
|
|
|
|
|
|
|
|
if CONFIG['ACCESSIBILITY']:
|
|
|
|
add_tier_dir('platform', 'accessible')
|
|
|
|
|
|
|
|
# toolkit
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'profile')
|
|
|
|
|
|
|
|
# This must precede xpfe.
|
|
|
|
if CONFIG['MOZ_JPROF']:
|
|
|
|
add_tier_dir('platform', 'tools/jprof')
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'tools/profiler')
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'xpfe/components')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_XREMOTE']:
|
|
|
|
add_tier_dir('platform', 'widget/xremoteclient')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_SPELLCHECK']:
|
|
|
|
add_tier_dir('platform', 'extensions/spellcheck')
|
|
|
|
|
2013-07-02 05:35:20 +04:00
|
|
|
add_tier_dir('platform', 'security/manager')
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
add_tier_dir('platform', 'toolkit')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_PREF_EXTENSIONS']:
|
|
|
|
add_tier_dir('platform', 'extensions/pref')
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'services')
|
|
|
|
add_tier_dir('platform', 'startupcache')
|
|
|
|
add_tier_dir('platform', 'js/ductwork/debugger')
|
|
|
|
add_tier_dir('platform', 'other-licenses/snappy')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_GIO_COMPONENT']:
|
|
|
|
add_tier_dir('platform', 'extensions/gio')
|
|
|
|
|
|
|
|
# Applications can cheat and ask for code to be
|
|
|
|
# built before libxul so it can be linked into libxul.
|
|
|
|
add_tier_dir('platform', app_libxul_dirs)
|
2013-02-28 15:56:40 +04:00
|
|
|
add_tier_dir('platform', app_libxul_static_dirs, static=True)
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
add_tier_dir('platform', 'toolkit/library')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_REPLACE_MALLOC']:
|
|
|
|
add_tier_dir('platform', 'memory/replace')
|
|
|
|
|
|
|
|
if CONFIG['NS_TRACE_MALLOC']:
|
|
|
|
add_tier_dir('platform', 'tools/trace-malloc')
|
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
|
|
|
|
add_tier_dir('platform', 'toolkit/system/gnome')
|
|
|
|
|
2013-08-26 03:56:53 +04:00
|
|
|
# if QtNetwork is present, it will do its own network monitoring
|
|
|
|
if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']:
|
2013-02-26 01:19:09 +04:00
|
|
|
add_tier_dir('platform', 'toolkit/system/dbus')
|
|
|
|
|
|
|
|
add_tier_dir('platform', 'addon-sdk')
|
|
|
|
|
2013-05-13 16:43:15 +04:00
|
|
|
if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
|
2013-02-26 01:19:09 +04:00
|
|
|
add_tier_dir('platform', 'testing/marionette')
|
|
|
|
|
2011-05-26 17:07:35 +04:00
|
|
|
add_tier_dir('platform', 'tools/quitter')
|
|
|
|
|
2013-02-26 01:19:09 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
add_tier_dir('platform', [
|
|
|
|
'testing/mochitest',
|
|
|
|
'testing/xpcshell',
|
|
|
|
'testing/tools/screenshot',
|
|
|
|
'testing/peptest',
|
2013-03-29 00:42:49 +04:00
|
|
|
'testing/profiles',
|
2013-02-26 01:19:09 +04:00
|
|
|
'testing/mozbase',
|
|
|
|
'testing/modules',
|
|
|
|
])
|
|
|
|
|
2013-03-20 00:02:44 +04:00
|
|
|
if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
|
|
|
add_tier_dir('platform', [
|
|
|
|
'media/webrtc/signaling/test',
|
|
|
|
'media/mtransport/test',
|
|
|
|
])
|