1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 CONFIGURE_SUBST_FILES += [
12 if CONFIG['ENABLE_CLANG_PLUGIN']:
13 add_tier_dir('base', 'build/clang-plugin', external=True)
15 add_tier_dir('base', ['config', 'python'])
16 if not CONFIG['JS_STANDALONE']:
17 CONFIGURE_SUBST_FILES += [
19 'tools/update-packaging/Makefile',
22 add_tier_dir('base', ['build', 'probes'])
24 if not CONFIG['LIBXUL_SDK']:
25 add_tier_dir('base', ['mfbt'])
27 add_tier_dir('base', ['config/external/zlib'])
29 if not CONFIG['JS_STANDALONE']:
30 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
31 add_tier_dir('base', ['other-licenses/android'])
33 if CONFIG['MOZ_MEMORY']:
34 add_tier_dir('base', ['memory'])
36 add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
39 if not CONFIG['JS_STANDALONE']:
40 add_tier_dir('precompile', 'xpcom/xpidl')
42 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
43 add_tier_dir('nspr', 'config/external/nspr')
45 if not CONFIG['JS_STANDALONE']:
46 add_tier_dir('external', 'config/external')
47 add_tier_dir('nss', 'config/external/nss')
49 if CONFIG['BUILD_CTYPES']:
50 add_tier_dir('js', ['config/external/ffi'])
51 if CONFIG['ENABLE_INTL_API']:
52 add_tier_dir('js', ['config/external/icu'])
53 add_tier_dir('js', ['js/src'])
55 if not CONFIG['JS_STANDALONE']:
56 # Bring in the configuration for the configured application.
57 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')