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/.
|
|
|
|
|
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']:
|
|
|
|
add_tier_dir('base', 'build/clang-plugin', external=True)
|
|
|
|
|
|
|
|
add_tier_dir('base', ['config', 'python'])
|
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 14:38:40 -08:00
|
|
|
CONFIGURE_SUBST_FILES += [
|
|
|
|
'mozilla-config.h',
|
|
|
|
'tools/update-packaging/Makefile',
|
|
|
|
]
|
2013-03-23 19:12:25 -07:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
add_tier_dir('base', ['build', 'probes'])
|
2013-12-17 15:07:11 -08:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
if not CONFIG['LIBXUL_SDK']:
|
|
|
|
add_tier_dir('base', ['mfbt'])
|
2013-02-25 12:47:18 -08:00
|
|
|
|
2014-08-06 22:21:03 -07:00
|
|
|
add_tier_dir('base', ['config/external/zlib'])
|
2014-07-16 16:42:17 -07:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-02-24 17:46:48 -08:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
|
|
|
|
add_tier_dir('base', ['other-licenses/android'])
|
2013-02-25 12:47:18 -08:00
|
|
|
|
2014-01-13 14:38:40 -08:00
|
|
|
if CONFIG['MOZ_MEMORY']:
|
|
|
|
add_tier_dir('base', ['memory'])
|
2013-02-25 12:47:18 -08:00
|
|
|
|
2014-01-13 14:38:40 -08:00
|
|
|
add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
|
2013-11-06 17:37:44 -08:00
|
|
|
|
2014-07-16 16:42:17 -07:00
|
|
|
|
2014-02-10 17:37:47 -08:00
|
|
|
if not CONFIG['JS_STANDALONE']:
|
2014-01-13 14:38:40 -08:00
|
|
|
add_tier_dir('precompile', 'xpcom/xpidl')
|
|
|
|
|
2014-02-25 14:15:16 -08:00
|
|
|
if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']:
|
2014-08-06 22:21:03 -07:00
|
|
|
add_tier_dir('nspr', '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-02-10 17:37:47 -08:00
|
|
|
add_tier_dir('external', 'config/external')
|
2014-08-06 22:21:03 -07:00
|
|
|
add_tier_dir('nss', 'config/external/nss')
|
2014-02-10 17:37:47 -08:00
|
|
|
|
2014-08-06 22:21:03 -07:00
|
|
|
if CONFIG['BUILD_CTYPES']:
|
|
|
|
add_tier_dir('js', ['config/external/ffi'])
|
|
|
|
if CONFIG['ENABLE_INTL_API']:
|
|
|
|
add_tier_dir('js', ['config/external/icu'])
|
2014-02-10 17:37:47 -08:00
|
|
|
add_tier_dir('js', ['js/src'])
|
|
|
|
|
|
|
|
if not CONFIG['JS_STANDALONE']:
|
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')
|