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=')
|
|
|
|
|
2014-08-27 18:32:55 +04:00
|
|
|
if CONFIG['MOZ_SANDBOX']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/security/sandbox']
|
2013-08-12 23:58:35 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
|
|
|
# Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator
|
|
|
|
# builds fail.
|
2014-10-02 04:14:07 +04:00
|
|
|
'/security/certverifier',
|
2014-10-02 04:14:07 +04:00
|
|
|
# Depends on certverifier
|
2014-10-02 04:14:07 +04:00
|
|
|
'/security/apps',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2014-02-15 02:37:07 +04:00
|
|
|
|
2013-08-10 02:01:08 +04:00
|
|
|
# the signing related bits of libmar depend on nss
|
|
|
|
if CONFIG['MOZ_UPDATER']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/modules/libmar']
|
2013-08-10 02:01:08 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/config/external/freetype2',
|
|
|
|
'/xpcom',
|
|
|
|
'/modules/libpref',
|
|
|
|
'/intl',
|
|
|
|
'/netwerk',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_AUTH_EXTENSION']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/extensions/auth']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_UPDATER']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/other-licenses/bsdiff']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
# Gecko/Core components.
|
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/ipc',
|
|
|
|
'/js/ipc',
|
|
|
|
'/hal',
|
|
|
|
'/js/xpconnect',
|
|
|
|
'/intl/chardet',
|
|
|
|
'/media/libyuv',
|
|
|
|
'/modules/libjar',
|
|
|
|
'/storage',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PERMISSIONS']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/extensions/cookie',
|
|
|
|
'/extensions/permissions',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/rdf',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WEBRTC']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/media/webrtc',
|
2015-04-09 16:15:00 +03:00
|
|
|
'/media/mtransport',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-08-10 06:32:41 +04:00
|
|
|
if CONFIG['MOZ_OMX_PLUGIN']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/media/omx-plugin/lib/ics/libutils',
|
|
|
|
'/media/omx-plugin/lib/ics/libstagefright',
|
|
|
|
'/media/omx-plugin/lib/ics/libvideoeditorplayer',
|
|
|
|
'/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',
|
|
|
|
'/media/omx-plugin/gb',
|
|
|
|
'/media/omx-plugin/gb235',
|
|
|
|
'/media/omx-plugin/lib/hc/libstagefright',
|
|
|
|
'/media/omx-plugin/hc',
|
|
|
|
'/media/omx-plugin/kk',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-08-10 06:32:41 +04:00
|
|
|
|
2013-02-26 01:19:09 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/testing/specialpowers']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/testing/gtest',
|
|
|
|
'/uriloader',
|
|
|
|
'/caps',
|
|
|
|
'/parser',
|
|
|
|
'/gfx',
|
|
|
|
'/image',
|
|
|
|
'/dom',
|
|
|
|
'/view',
|
|
|
|
'/widget',
|
|
|
|
'/content',
|
|
|
|
'/editor',
|
|
|
|
'/layout',
|
|
|
|
'/docshell',
|
|
|
|
'/embedding',
|
|
|
|
'/xpfe/appshell'
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
# 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':
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/other-licenses/skia-npapi']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_UNIVERSALCHARDET']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/extensions/universalchardet']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['ACCESSIBILITY']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/accessible']
|
2014-03-08 01:35:19 +04:00
|
|
|
else:
|
|
|
|
DIRS += ['/accessible/ipc']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
# toolkit
|
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/profile']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
# This must precede xpfe.
|
|
|
|
if CONFIG['MOZ_JPROF']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/tools/jprof']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/tools/profiler',
|
|
|
|
'/xpfe/components',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_XREMOTE']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/widget/xremoteclient']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_SPELLCHECK']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/extensions/spellcheck']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/security/manager',
|
|
|
|
'/toolkit',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_PREF_EXTENSIONS']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/extensions/pref']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/services',
|
|
|
|
'/startupcache',
|
|
|
|
'/js/ductwork/debugger',
|
|
|
|
'/other-licenses/snappy',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_GIO_COMPONENT']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/extensions/gio']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/toolkit/library/StaticXULComponentsEnd',
|
|
|
|
'/toolkit/library',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/toolkit/system/gnome']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
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']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/toolkit/system/dbus']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/addon-sdk']
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-05-13 16:43:15 +04:00
|
|
|
if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'):
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += ['/testing/marionette']
|
2011-05-26 17:07:35 +04:00
|
|
|
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/tools/quitter',
|
|
|
|
'/media/gmp-clearkey/0.1',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2014-09-24 02:04:49 +04:00
|
|
|
|
2013-02-26 01:19:09 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/testing/mochitest',
|
|
|
|
'/testing/xpcshell',
|
|
|
|
'/testing/tools/screenshot',
|
|
|
|
'/testing/profiles',
|
|
|
|
'/testing/mozbase',
|
|
|
|
'/testing/modules',
|
2015-03-11 23:05:36 +03:00
|
|
|
'/testing/runtimes',
|
2014-10-02 04:14:07 +04:00
|
|
|
'/testing/web-platform',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|
2013-02-26 01:19:09 +04:00
|
|
|
|
2013-03-20 00:02:44 +04:00
|
|
|
if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
|
2014-10-02 04:14:07 +04:00
|
|
|
DIRS += [
|
2014-10-02 04:14:07 +04:00
|
|
|
'/media/webrtc/signaling/test',
|
2015-04-09 16:15:00 +03:00
|
|
|
'/media/webrtc/signaling/test/standalone',
|
2014-10-02 04:14:07 +04:00
|
|
|
'/media/mtransport/test',
|
2014-10-02 04:14:07 +04:00
|
|
|
]
|