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 with Files('**/Makefile.in'):
8 BUG_COMPONENT = ('Core', 'Build Config')
11 CONFIGURE_SUBST_FILES += [
13 'config/emptyvars.mk',
16 if CONFIG['ENABLE_CLANG_PLUGIN']:
17 DIRS += ['build/clang-plugin']
24 if not CONFIG['JS_STANDALONE']:
25 CONFIGURE_SUBST_FILES += [
27 'tools/update-packaging/Makefile',
35 if not CONFIG['LIBXUL_SDK']:
37 'config/external/zlib',
43 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android' and int(CONFIG['MOZ_ANDROID_MIN_SDK_VERSION']) < 11:
44 DIRS += ['other-licenses/android']
46 if not CONFIG['JS_STANDALONE']:
47 DIRS += ['xpcom/xpidl']
49 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
50 DIRS += ['config/external/nspr']
52 if not CONFIG['JS_STANDALONE']:
55 'config/external/nss',
58 if CONFIG['BUILD_CTYPES']:
59 DIRS += ['config/external/ffi']
61 DIRS += ['config/external/icu']
64 if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
65 # Bring in the configuration for the configured application.
66 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
68 include('build/templates.mozbuild')