2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:18 +04: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-24 01:43:32 +04:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
2014-01-14 02:38:40 +04:00
|
|
|
'config/autoconf.mk',
|
|
|
|
'config/emptyvars.mk',
|
2013-10-24 01:43:32 +04:00
|
|
|
]
|
2013-02-26 01:20:01 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if CONFIG['BUILDING_JS']:
|
|
|
|
if CONFIG['JS_STANDALONE']:
|
2014-01-20 04:11:45 +04:00
|
|
|
add_tier_dir('base', ['config', 'mfbt'])
|
2014-01-20 04:11:55 +04:00
|
|
|
if CONFIG['JS_HAS_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']:
|
|
|
|
add_tier_dir('js', ['js/src/ctypes/libffi'], static=True)
|
2014-01-20 04:13:06 +04:00
|
|
|
add_tier_dir('js', ['intl/icu'], static=True)
|
|
|
|
CONFIGURE_SUBST_FILES += ['intl/icu/Makefile']
|
2014-01-20 04:11:37 +04:00
|
|
|
add_tier_dir('js', ['js/src'])
|
2014-01-14 02:38:40 +04:00
|
|
|
else:
|
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'mozilla-config.h',
|
|
|
|
'tools/update-packaging/Makefile',
|
|
|
|
]
|
2013-03-24 06:12:25 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if CONFIG['ENABLE_CLANG_PLUGIN']:
|
|
|
|
add_tier_dir('base', 'build/clang-plugin', external=True)
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
add_tier_dir('base', ['config', 'build', 'probes', 'python'])
|
2013-12-18 03:07:11 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if not CONFIG['LIBXUL_SDK']:
|
|
|
|
add_tier_dir('base', ['mfbt'])
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):
|
2014-01-13 18:11:02 +04:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] <= '18':
|
|
|
|
add_tier_dir('base', ['other-licenses/android'])
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if CONFIG['MOZ_MEMORY']:
|
|
|
|
add_tier_dir('base', ['memory'])
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
if not CONFIG['MOZ_NATIVE_ZLIB']:
|
|
|
|
add_tier_dir('base', ['modules/zlib'])
|
2013-02-26 00:47:18 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
|
2013-11-07 05:37:44 +04:00
|
|
|
|
2014-01-14 02:38:40 +04:00
|
|
|
add_tier_dir('precompile', 'xpcom/xpidl')
|
|
|
|
|
|
|
|
# Bring in the configuration for the configured application.
|
|
|
|
include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
|