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['BUILDING_JS']:
13 if CONFIG['JS_STANDALONE']:
14 add_tier_dir('base', ['config', 'mfbt'])
15 if CONFIG['JS_HAS_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']:
16 add_tier_dir('js', ['js/src/ctypes/libffi'], static=True)
17 add_tier_dir('js', ['intl/icu'], static=True)
18 CONFIGURE_SUBST_FILES += ['intl/icu/Makefile']
19 add_tier_dir('js', ['js/src'])
21 CONFIGURE_SUBST_FILES += [
23 'tools/update-packaging/Makefile',
26 if CONFIG['ENABLE_CLANG_PLUGIN']:
27 add_tier_dir('base', 'build/clang-plugin', external=True)
29 add_tier_dir('base', ['config', 'build', 'probes', 'python'])
31 if not CONFIG['LIBXUL_SDK']:
32 add_tier_dir('base', ['mfbt'])
34 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):
35 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] <= '18':
36 add_tier_dir('base', ['other-licenses/android'])
38 if CONFIG['MOZ_MEMORY']:
39 add_tier_dir('base', ['memory'])
41 if not CONFIG['MOZ_NATIVE_ZLIB']:
42 add_tier_dir('base', ['modules/zlib'])
44 add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
46 add_tier_dir('precompile', 'xpcom/xpidl')
48 # Bring in the configuration for the configured application.
49 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')