Bug 1288373 - Add missing task.h for NewRunnableFunction r=tzimmermann
[gecko.git] / moz.build
blobcdfe3133d9a5e12f7304575e504fadb112637c40
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 with Files('**/Makefile.in'):
8     BUG_COMPONENT = ('Core', 'Build Config')
9     FINAL = True
11 FILES_PER_UNIFIED_FILE = 1
13 CONFIGURE_SUBST_FILES += [
14     'config/autoconf.mk',
15     'config/emptyvars.mk',
18 if CONFIG['ENABLE_CLANG_PLUGIN']:
19     DIRS += ['build/clang-plugin']
21 DIRS += [
22     'config',
23     'python',
24     'taskcluster',
27 if not CONFIG['JS_STANDALONE']:
28     CONFIGURE_SUBST_FILES += [
29         'tools/update-packaging/Makefile',
30     ]
31     CONFIGURE_DEFINE_FILES += [
32         'mozilla-config.h',
33     ]
34     EXPORTS += [
35         '!buildid.h',
36         '!mozilla-config.h',
37         '!source-repo.h',
38     ]
40     GENERATED_FILES += [
41         'buildid.h',
42         'source-repo.h',
43     ]
45     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
46     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
48     DIRS += [
49         'build',
50         'probes',
51     ]
53 DIRS += [
54     'config/external/fdlibm',
55     'config/external/nspr',
56     'config/external/zlib',
57     'memory',
58     'mfbt',
59     'mozglue',
62 if not CONFIG['JS_STANDALONE']:
63     DIRS += ['xpcom/xpidl']
65 if CONFIG['USE_ICU']:
66     DIRS += ['config/external/icu']
68 if CONFIG['COMPILE_ENVIRONMENT']:
70     if not CONFIG['JS_STANDALONE']:
71         DIRS += [
72             'config/external',
73             'config/external/nss',
74         ]
76     if CONFIG['BUILD_CTYPES']:
77         DIRS += ['config/external/ffi']
79     DIRS += ['js/src']
80 else:
81     TEST_DIRS += ['js/src/tests']
83 if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
84     # Bring in the configuration for the configured application.
85     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
87 include('build/templates.mozbuild')