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 FILES_PER_UNIFIED_FILE = 1
13 CONFIGURE_SUBST_FILES += [
15 'config/emptyvars.mk',
18 if CONFIG['ENABLE_CLANG_PLUGIN']:
19 DIRS += ['build/clang-plugin']
27 if not CONFIG['JS_STANDALONE']:
28 CONFIGURE_SUBST_FILES += [
29 'tools/update-packaging/Makefile',
31 CONFIGURE_DEFINE_FILES += [
45 GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
46 GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
54 'config/external/zlib',
60 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android' and int(CONFIG['MOZ_ANDROID_MIN_SDK_VERSION']) < 11:
61 DIRS += ['other-licenses/android']
63 if not CONFIG['JS_STANDALONE']:
64 DIRS += ['xpcom/xpidl']
66 if CONFIG['COMPILE_ENVIRONMENT']:
67 DIRS += ['config/external/nspr']
69 if not CONFIG['JS_STANDALONE']:
72 'config/external/nss',
75 if CONFIG['BUILD_CTYPES']:
76 DIRS += ['config/external/ffi']
78 DIRS += ['config/external/icu']
81 if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
82 # Bring in the configuration for the configured application.
83 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
85 include('build/templates.mozbuild')