Bug 1376625 - Updating meta data for newly added tests r=ato
[gecko.git] / moz.build
blob60e58130656611f1e80d3523db79c632e4ecc372
1 # -*- Mode: python; 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('AUTHORS'):
8     BUG_COMPONENT = ('mozilla.org', 'Licensing')
10 with Files('LICENSE'):
11     BUG_COMPONENT = ('mozilla.org', 'Licensing')
13 with Files('LEGAL'):
14     BUG_COMPONENT = ('mozilla.org', 'Licensing')
16 with Files('aclocal.m4'):
17     BUG_COMPONENT = ('Core', 'Build Config')
19 with Files('Android.mk'):
20     BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')
22 with Files('client.*'):
23     BUG_COMPONENT = ('Core', 'Build Config')
25 with Files('CLOBBER'):
26     BUG_COMPONENT = ('Core', 'Build Config')
28 with Files('*configure*'):
29     BUG_COMPONENT = ('Core', 'Build Config')
31 with Files('mach'):
32     BUG_COMPONENT = ('Core', 'mach')
34 with Files('*moz*'):
35     BUG_COMPONENT = ('Core', 'Build Config')
37 with Files('GNUmakefile'):
38     BUG_COMPONENT = ('Core', 'Build Config')
40 with Files('*gradle*'):
41     BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')
43 with Files('**/l10n.toml'):
44     BUG_COMPONENT = ('Core', 'Localization')
45     FINAL = True
47 with Files('README.txt'):
48     BUG_COMPONENT = ('Core', 'General')
50 with Files('**/Makefile.in'):
51     BUG_COMPONENT = ('Core', 'Build Config')
52     FINAL = True
54 FILES_PER_UNIFIED_FILE = 1
56 CONFIGURE_SUBST_FILES += [
57     'config/autoconf.mk',
58     'config/emptyvars.mk',
61 if CONFIG['ENABLE_CLANG_PLUGIN']:
62     DIRS += ['build/clang-plugin']
64 DIRS += [
65     'config',
66     'python',
67     'taskcluster',
68     'testing/mozbase',
69     'third_party/python',
72 if not CONFIG['JS_STANDALONE']:
73     # These python manifests are included here so they get picked up without an objdir
74     PYTHON_UNITTEST_MANIFESTS += [
75         'testing/marionette/harness/marionette_harness/tests/harness_unit/python.ini',
76         'testing/mochitest/tests/python/python.ini',
77     ]
79     CONFIGURE_SUBST_FILES += [
80         'tools/update-packaging/Makefile',
81     ]
82     CONFIGURE_DEFINE_FILES += [
83         'mozilla-config.h',
84     ]
85     EXPORTS += [
86         '!buildid.h',
87         '!mozilla-config.h',
88         '!source-repo.h',
89     ]
91     GENERATED_FILES += [
92         'buildid.h',
93         'source-repo.h',
94     ]
96     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
97     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
99     DIRS += [
100         'build',
101         'probes',
102     ]
104 if CONFIG['COMPILE_ENVIRONMENT']:
105     DIRS += ['js/src']
107 DIRS += [
108     'config/external/fdlibm',
109     'config/external/nspr',
110     'config/external/zlib',
111     'memory',
112     'mfbt',
113     'mozglue',
116 if not CONFIG['JS_STANDALONE']:
117     DIRS += ['xpcom/xpidl']
119 if CONFIG['USE_ICU']:
120     DIRS += ['config/external/icu']
122 if CONFIG['COMPILE_ENVIRONMENT']:
123     if not CONFIG['JS_STANDALONE']:
124         DIRS += [
125             'config/external',
126             'security',
127         ]
129     if CONFIG['BUILD_CTYPES']:
130         DIRS += ['config/external/ffi']
132 else:
133     TEST_DIRS += ['js/src/tests']
135 if not CONFIG['JS_STANDALONE'] and CONFIG['MOZ_BUILD_APP']:
136     # Bring in the configuration for the configured application.
137     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
139 CONFIGURE_SUBST_FILES += ['.cargo/config']
141 include('build/templates.mozbuild')