Backout a74bd5095902, Bug 959405 - Please update the Buri Moz-central, 1.3, 1.2 with...
[gecko.git] / moz.build
blob827792aa391c6d232a4dd74b96ca624e0c14cd18
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/.
7 CONFIGURE_SUBST_FILES += [
8     'config/autoconf.mk',
9     'config/emptyvars.mk',
12 if CONFIG['BUILDING_JS']:
13     if CONFIG['JS_STANDALONE']:
14         DIRS += ['config']
15     DIRS += ['js/src']
16 else:
17     CONFIGURE_SUBST_FILES += [
18         'mozilla-config.h',
19         'tools/update-packaging/Makefile',
20     ]
22     if CONFIG['ENABLE_CLANG_PLUGIN']:
23         add_tier_dir('base', 'build/clang-plugin', external=True)
25     add_tier_dir('base', ['config', 'build', 'probes', 'python'])
27     if not CONFIG['LIBXUL_SDK']:
28         add_tier_dir('base', ['mfbt'])
30         if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):
31             if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['ANDROID_VERSION'] <= '18':
32                 add_tier_dir('base', ['other-licenses/android'])
34         if CONFIG['MOZ_MEMORY']:
35             add_tier_dir('base', ['memory'])
37         if not CONFIG['MOZ_NATIVE_ZLIB']:
38             add_tier_dir('base', ['modules/zlib'])
40         add_tier_dir('base', ['mozglue', 'memory/mozalloc'])
42     add_tier_dir('precompile', 'xpcom/xpidl')
44     # Bring in the configuration for the configured application.
45     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')