2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:18 +00: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/.
|
|
|
|
|
2013-10-23 21:43:32 +00:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
2014-01-13 22:38:40 +00:00
|
|
|
'config/autoconf.mk',
|
|
|
|
'config/emptyvars.mk',
|
2013-10-23 21:43:32 +00:00
|
|
|
]
|
2013-02-25 21:20:01 +00:00
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
if CONFIG['ENABLE_CLANG_PLUGIN']:
|
|
|
|
add_tier_dir('base', 'build/clang-plugin', external=True)
|
|
|
|
|
|
|
|
add_tier_dir('base', ['config', 'python'])
|
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 22:38:40 +00:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'mozilla-config.h',
|
|
|
|
'tools/update-packaging/Makefile',
|
|
|
|
]
|
2013-03-24 02:12:25 +00:00
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
add_tier_dir('base', ['build', 'probes'])
|
2013-12-17 23:07:11 +00:00
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
if not CONFIG['LIBXUL_SDK']:
|
|
|
|
add_tier_dir('base', ['mfbt'])
|
2013-02-25 20:47:18 +00:00
|
|
|
|
2014-07-16 23:42:17 +00:00
|
|
|
if not CONFIG['MOZ_NATIVE_ZLIB']:
|
|
|
|
add_tier_dir('base', ['modules/zlib'])
|
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-02-25 01:46:48 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
add_tier_dir('base', ['other-licenses/android'])
|
2013-02-25 20:47:18 +00:00
|
|
|
|
2014-01-13 22:38:40 +00:00
|
|
|
if CONFIG['MOZ_MEMORY']:
|
|
|
|
add_tier_dir('base', ['memory'])
|
2013-02-25 20:47:18 +00:00
|
|
|
|
2014-01-13 22:38:40 +00:00
|
|
|
add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
|
2013-11-07 01:37:44 +00:00
|
|
|
|
2014-07-16 23:42:17 +00:00
|
|
|
|
2014-02-11 01:37:47 +00:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 22:38:40 +00:00
|
|
|
add_tier_dir('precompile', 'xpcom/xpidl')
|
|
|
|
|
2014-02-25 22:15:16 +00:00
|
|
|
if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
|
|
|
|
if CONFIG['MOZ_BUILD_NSPR']:
|
2014-08-06 17:58:52 +00:00
|
|
|
add_tier_dir('nspr', 'config/external/nspr', trigger='NSPR_LIBS')
|
2014-02-11 01:37:47 +00:00
|
|
|
|
2014-02-25 22:15:16 +00:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-02-11 01:37:47 +00:00
|
|
|
add_tier_dir('external', 'config/external')
|
|
|
|
if not CONFIG['MOZ_NATIVE_NSS']:
|
2014-07-24 22:14:40 +00:00
|
|
|
# We want security/build to be built before anything using
|
|
|
|
# NSPR_LIBS when MOZ_FOLD_LIBS is set, because that's where NSPR
|
|
|
|
# actually ends up being linked. All places using NSS_LIBS also
|
|
|
|
# use NSPR_LIBS so it's safe to use the latter.
|
2014-08-06 17:58:52 +00:00
|
|
|
add_tier_dir('nss', 'config/external/nss',
|
2014-07-24 22:14:40 +00:00
|
|
|
trigger='NSPR_LIBS' if CONFIG['MOZ_FOLD_LIBS'] else 'NSS_LIBS')
|
2014-02-11 01:37:47 +00:00
|
|
|
|
|
|
|
if CONFIG['BUILD_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']:
|
2014-08-06 17:58:52 +00:00
|
|
|
add_tier_dir('js', ['config/external/ffi'], trigger='MOZ_FFI_LIBS')
|
2014-07-24 22:14:40 +00:00
|
|
|
if CONFIG['ENABLE_INTL_API'] and not CONFIG['MOZ_NATIVE_ICU']:
|
2014-08-06 17:58:52 +00:00
|
|
|
add_tier_dir('js', ['config/external/icu'], trigger='MOZ_ICU_LIBS')
|
2014-02-11 01:37:47 +00:00
|
|
|
add_tier_dir('js', ['js/src'])
|
|
|
|
|
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 22:38:40 +00:00
|
|
|
# Bring in the configuration for the configured application.
|
|
|
|
include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
|