2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:18 -08:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2015-02-26 11:43:45 -08:00
|
|
|
with Files('**/Makefile.in'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Build Config')
|
|
|
|
FINAL = True
|
|
|
|
|
2016-01-30 09:05:36 -08:00
|
|
|
FILES_PER_UNIFIED_FILE = 1
|
|
|
|
|
2013-10-23 14:43:32 -07:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
2014-01-13 14:38:40 -08:00
|
|
|
'config/autoconf.mk',
|
|
|
|
'config/emptyvars.mk',
|
2013-10-23 14:43:32 -07:00
|
|
|
]
|
2013-02-25 13:20:01 -08:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
if CONFIG['ENABLE_CLANG_PLUGIN']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += ['build/clang-plugin']
|
|
|
|
|
|
|
|
DIRS += [
|
|
|
|
'config',
|
|
|
|
'python',
|
|
|
|
]
|
2014-02-10 17:37:47 -08:00
|
|
|
|
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 14:38:40 -08:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'tools/update-packaging/Makefile',
|
|
|
|
]
|
2015-12-03 17:51:12 -08:00
|
|
|
CONFIGURE_DEFINE_FILES += [
|
|
|
|
'mozilla-config.h',
|
|
|
|
]
|
2015-12-16 21:06:32 -08:00
|
|
|
EXPORTS += [
|
|
|
|
'!mozilla-config.h',
|
|
|
|
]
|
2013-03-23 19:12:25 -07:00
|
|
|
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += [
|
|
|
|
'build',
|
|
|
|
'probes',
|
|
|
|
]
|
2013-12-17 15:07:11 -08:00
|
|
|
|
2015-10-05 20:13:33 -07:00
|
|
|
DIRS += [
|
|
|
|
'config/external/zlib',
|
|
|
|
'memory',
|
|
|
|
'mfbt',
|
|
|
|
'mozglue',
|
|
|
|
]
|
2014-07-16 16:42:17 -07:00
|
|
|
|
2015-10-05 20:13:33 -07:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android' and int(CONFIG['MOZ_ANDROID_MIN_SDK_VERSION']) < 11:
|
|
|
|
DIRS += ['other-licenses/android']
|
2014-07-16 16:42:17 -07:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += ['xpcom/xpidl']
|
2014-01-13 14:38:40 -08:00
|
|
|
|
2015-10-05 20:13:33 -07:00
|
|
|
if CONFIG['COMPILE_ENVIRONMENT']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += ['config/external/nspr']
|
2014-02-10 17:37:47 -08:00
|
|
|
|
2014-02-25 14:15:16 -08:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += [
|
|
|
|
'config/external',
|
|
|
|
'config/external/nss',
|
|
|
|
]
|
2014-02-10 17:37:47 -08:00
|
|
|
|
2014-08-06 22:21:03 -07:00
|
|
|
if CONFIG['BUILD_CTYPES']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += ['config/external/ffi']
|
2014-10-09 23:55:00 -07:00
|
|
|
if CONFIG['USE_ICU']:
|
2014-10-01 17:14:07 -07:00
|
|
|
DIRS += ['config/external/icu']
|
|
|
|
DIRS += ['js/src']
|
2014-02-10 17:37:47 -08:00
|
|
|
|
2015-02-26 10:21:52 -08:00
|
|
|
if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
|
2014-01-13 14:38:40 -08:00
|
|
|
# Bring in the configuration for the configured application.
|
|
|
|
include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
|
2014-08-23 17:11:05 -07:00
|
|
|
|
|
|
|
include('build/templates.mozbuild')
|