|
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/. |
|
6 |
|
7 CONFIGURE_SUBST_FILES += [ |
|
8 'config/autoconf.mk', |
|
9 'config/emptyvars.mk', |
|
10 ] |
|
11 |
|
12 if CONFIG['ENABLE_CLANG_PLUGIN']: |
|
13 add_tier_dir('base', 'build/clang-plugin', external=True) |
|
14 |
|
15 add_tier_dir('base', ['config', 'python']) |
|
16 if not CONFIG['JS_STANDALONE']: |
|
17 CONFIGURE_SUBST_FILES += [ |
|
18 'mozilla-config.h', |
|
19 'tools/update-packaging/Makefile', |
|
20 ] |
|
21 |
|
22 add_tier_dir('base', ['build', 'probes']) |
|
23 |
|
24 if not CONFIG['LIBXUL_SDK']: |
|
25 add_tier_dir('base', ['mfbt']) |
|
26 |
|
27 if not CONFIG['JS_STANDALONE']: |
|
28 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android': |
|
29 add_tier_dir('base', ['other-licenses/android']) |
|
30 |
|
31 if CONFIG['MOZ_MEMORY']: |
|
32 add_tier_dir('base', ['memory']) |
|
33 |
|
34 if not CONFIG['MOZ_NATIVE_ZLIB']: |
|
35 add_tier_dir('base', ['modules/zlib']) |
|
36 |
|
37 add_tier_dir('base', ['mozglue', 'memory/mozalloc']) |
|
38 |
|
39 if not CONFIG['JS_STANDALONE']: |
|
40 add_tier_dir('precompile', 'xpcom/xpidl') |
|
41 |
|
42 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']: |
|
43 if not CONFIG['MOZ_NATIVE_NSPR']: |
|
44 add_tier_dir('nspr', 'config/nspr') |
|
45 |
|
46 add_tier_dir('external', 'config/external') |
|
47 |
|
48 if not CONFIG['MOZ_NATIVE_NSS']: |
|
49 add_tier_dir('nss', 'security/build') |
|
50 |
|
51 if CONFIG['COMPILE_ENVIRONMENT'] and not CONFIG['LIBXUL_SDK']: |
|
52 if CONFIG['BUILD_CTYPES'] and not CONFIG['MOZ_NATIVE_FFI']: |
|
53 add_tier_dir('js', ['js/src/ctypes/libffi'], static=True) |
|
54 add_tier_dir('js', ['intl/icu'], static=True) |
|
55 CONFIGURE_SUBST_FILES += ['intl/icu/Makefile'] |
|
56 add_tier_dir('js', ['js/src']) |
|
57 |
|
58 if not CONFIG['JS_STANDALONE']: |
|
59 # Bring in the configuration for the configured application. |
|
60 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild') |