michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['LIBXUL_SDK']: michael@0: error('toolkit.mozbuild is not compatible with --enable-libxul-sdk=') michael@0: michael@0: if CONFIG['MOZ_CONTENT_SANDBOX']: michael@0: add_tier_dir('sandbox', 'security/sandbox') michael@0: michael@0: # Depends on NSS and NSPR, and must be built after sandbox or else B2G emulator michael@0: # builds fail. michael@0: add_tier_dir('platform', 'security/certverifier') michael@0: michael@0: # Depends on certverifier michael@0: add_tier_dir('platform', 'security/apps') michael@0: michael@0: # the signing related bits of libmar depend on nss michael@0: if CONFIG['MOZ_UPDATER']: michael@0: add_tier_dir('platform', 'modules/libmar') michael@0: michael@0: if CONFIG['NS_TRACE_MALLOC']: michael@0: add_tier_dir('platform', 'tools/trace-malloc/lib') michael@0: michael@0: if CONFIG['MOZ_DMD']: michael@0: add_tier_dir('platform', 'memory/replace/dmd') michael@0: michael@0: if CONFIG['MOZ_TREE_FREETYPE']: michael@0: add_tier_dir('platform', 'modules/freetype2', static=True) michael@0: michael@0: add_tier_dir('platform', 'xpcom') michael@0: michael@0: add_tier_dir('platform', [ michael@0: 'modules/libpref', michael@0: 'intl', michael@0: 'netwerk', michael@0: ]) michael@0: michael@0: if CONFIG['MOZ_AUTH_EXTENSION']: michael@0: add_tier_dir('platform', 'extensions/auth') michael@0: michael@0: if CONFIG['MOZ_UPDATER']: michael@0: add_tier_dir('platform', 'other-licenses/bsdiff') michael@0: michael@0: # Gecko/Core components. michael@0: michael@0: add_tier_dir('platform', ['ipc', 'js/ipc']) michael@0: michael@0: add_tier_dir('platform', ['hal', 'js/xpconnect', 'intl/chardet']) michael@0: michael@0: add_tier_dir('platform', 'media/libyuv') michael@0: michael@0: add_tier_dir('platform', ['modules/libjar', 'storage']) michael@0: michael@0: if CONFIG['MOZ_PERMISSIONS']: michael@0: add_tier_dir('platform', ['extensions/cookie', 'extensions/permissions']) michael@0: michael@0: add_tier_dir('platform', 'rdf') michael@0: michael@0: if CONFIG['MOZ_JSDEBUGGER']: michael@0: add_tier_dir('platform', 'js/jsd') michael@0: michael@0: if CONFIG['MOZ_WEBRTC']: michael@0: add_tier_dir('platform', [ michael@0: 'media/webrtc', michael@0: 'media/mtransport/third_party', michael@0: 'media/mtransport/build', michael@0: 'media/mtransport/standalone', michael@0: ]) michael@0: michael@0: if CONFIG['MOZ_OMX_PLUGIN']: michael@0: add_tier_dir('platform', [ michael@0: 'media/omx-plugin/lib/ics/libutils', michael@0: 'media/omx-plugin/lib/ics/libstagefright', michael@0: 'media/omx-plugin/lib/ics/libvideoeditorplayer', michael@0: 'media/omx-plugin/lib/gb/libutils', michael@0: 'media/omx-plugin/lib/gb/libstagefright', michael@0: 'media/omx-plugin/lib/gb/libstagefright_color_conversion', michael@0: 'media/omx-plugin/lib/gb235/libstagefright', michael@0: 'media/omx-plugin/lib/froyo/libstagefright', michael@0: 'media/omx-plugin', michael@0: 'media/omx-plugin/gb', michael@0: 'media/omx-plugin/gb235', michael@0: 'media/omx-plugin/froyo', michael@0: 'media/omx-plugin/lib/hc/libstagefright', michael@0: 'media/omx-plugin/hc', michael@0: 'media/omx-plugin/kk', michael@0: ]) michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: add_tier_dir('platform', 'testing/specialpowers') michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: add_tier_dir('platform', 'testing/gtest') michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: add_tier_dir('platform', 'tbb-tests') michael@0: michael@0: add_tier_dir('platform', [ michael@0: 'uriloader', michael@0: 'caps', michael@0: 'parser', michael@0: 'gfx', michael@0: 'image', michael@0: 'dom', michael@0: 'view', michael@0: 'widget', michael@0: 'content', michael@0: 'editor', michael@0: 'layout', michael@0: 'docshell', michael@0: 'embedding', michael@0: 'xpfe/appshell' michael@0: ]) michael@0: michael@0: # This needs to be built after the gfx/ directory michael@0: # to ensure all dependencies for skia (e.g. mozalloc, xpcom) michael@0: # have been built michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': michael@0: add_tier_dir('platform', 'other-licenses/skia-npapi') michael@0: michael@0: if CONFIG['MOZ_UNIVERSALCHARDET']: michael@0: add_tier_dir('platform', 'extensions/universalchardet') michael@0: michael@0: if CONFIG['ACCESSIBILITY']: michael@0: add_tier_dir('platform', 'accessible') michael@0: michael@0: # toolkit michael@0: michael@0: add_tier_dir('platform', 'profile') michael@0: michael@0: # This must precede xpfe. michael@0: if CONFIG['MOZ_JPROF']: michael@0: add_tier_dir('platform', 'tools/jprof') michael@0: michael@0: add_tier_dir('platform', 'tools/profiler') michael@0: michael@0: add_tier_dir('platform', 'xpfe/components') michael@0: michael@0: if CONFIG['MOZ_ENABLE_XREMOTE']: michael@0: add_tier_dir('platform', 'widget/xremoteclient') michael@0: michael@0: if CONFIG['MOZ_SPELLCHECK']: michael@0: add_tier_dir('platform', 'extensions/spellcheck') michael@0: michael@0: add_tier_dir('platform', 'security/manager') michael@0: michael@0: add_tier_dir('platform', 'toolkit') michael@0: michael@0: if CONFIG['MOZ_PREF_EXTENSIONS']: michael@0: add_tier_dir('platform', 'extensions/pref') michael@0: michael@0: add_tier_dir('platform', 'services') michael@0: add_tier_dir('platform', 'startupcache') michael@0: add_tier_dir('platform', 'js/ductwork/debugger') michael@0: add_tier_dir('platform', 'other-licenses/snappy') michael@0: michael@0: if CONFIG['MOZ_GIO_COMPONENT']: michael@0: add_tier_dir('platform', 'extensions/gio') michael@0: michael@0: # Applications can cheat and ask for code to be michael@0: # built before libxul so it can be linked into libxul. michael@0: add_tier_dir('platform', app_libxul_dirs) michael@0: add_tier_dir('platform', app_libxul_static_dirs, static=True) michael@0: michael@0: add_tier_dir('platform', 'toolkit/library') michael@0: michael@0: if CONFIG['MOZ_REPLACE_MALLOC']: michael@0: add_tier_dir('platform', 'memory/replace') michael@0: michael@0: if CONFIG['NS_TRACE_MALLOC']: michael@0: add_tier_dir('platform', 'tools/trace-malloc') michael@0: michael@0: if CONFIG['MOZ_ENABLE_GNOME_COMPONENT']: michael@0: add_tier_dir('platform', 'toolkit/system/gnome') michael@0: michael@0: # if QtNetwork is present, it will do its own network monitoring michael@0: if not CONFIG['MOZ_ENABLE_QTNETWORK'] and CONFIG['MOZ_ENABLE_DBUS']: michael@0: add_tier_dir('platform', 'toolkit/system/dbus') michael@0: michael@0: add_tier_dir('platform', 'addon-sdk') michael@0: michael@0: if CONFIG['ENABLE_MARIONETTE'] or CONFIG['MOZ_WIDGET_TOOLKIT'] not in ('gonk', 'android'): michael@0: add_tier_dir('platform', 'testing/marionette') michael@0: michael@0: add_tier_dir('platform', 'tools/quitter') michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: add_tier_dir('platform', [ michael@0: 'testing/mochitest', michael@0: 'testing/xpcshell', michael@0: 'testing/tools/screenshot', michael@0: 'testing/profiles', michael@0: 'testing/mozbase', michael@0: 'testing/modules', michael@0: ]) michael@0: michael@0: if CONFIG['MOZ_WEBRTC'] and CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk': michael@0: add_tier_dir('platform', [ michael@0: 'media/webrtc/signaling/test', michael@0: 'media/mtransport/test', michael@0: ])