Source code

Revision control

Other Tools

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/.
6
7
with Files('AUTHORS'):
8
BUG_COMPONENT = ('mozilla.org', 'Licensing')
9
10
with Files('LICENSE'):
11
BUG_COMPONENT = ('mozilla.org', 'Licensing')
12
13
with Files('LEGAL'):
14
BUG_COMPONENT = ('mozilla.org', 'Licensing')
15
16
with Files('aclocal.m4'):
17
BUG_COMPONENT = ('Firefox Build System', 'General')
18
19
with Files('Cargo.*'):
20
BUG_COMPONENT = ('Firefox Build System', 'General')
21
22
with Files('client.*'):
23
BUG_COMPONENT = ('Firefox Build System', 'General')
24
25
with Files('CLOBBER'):
26
BUG_COMPONENT = ('Firefox Build System', 'General')
27
28
with Files('*configure*'):
29
BUG_COMPONENT = ('Firefox Build System', 'General')
30
31
with Files("docs/**"):
32
BUG_COMPONENT = ("Firefox Build System", "Generated Documentation")
33
SCHEDULES.exclusive = ['docs']
34
35
with Files('mach'):
36
BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
37
38
with Files('*moz*'):
39
BUG_COMPONENT = ('Firefox Build System', 'General')
40
41
with Files('GNUmakefile'):
42
BUG_COMPONENT = ('Firefox Build System', 'General')
43
44
with Files('*gradle*'):
45
BUG_COMPONENT = ('Firefox for Android', 'General')
46
SCHEDULES.exclusive = ['android']
47
48
with Files('*.json'):
49
BUG_COMPONENT = ('Firefox Build System', 'General')
50
51
with Files('**/l10n.toml'):
52
BUG_COMPONENT = ('Core', 'Localization')
53
FINAL = True
54
55
with Files('README.txt'):
56
BUG_COMPONENT = ('Core', 'General')
57
58
with Files("nsprpub/**"):
59
BUG_COMPONENT = ("NSPR", "NSPR")
60
61
with Files('**/Makefile.in'):
62
BUG_COMPONENT = ('Firefox Build System', 'General')
63
FINAL = True
64
65
with Files("**/*.js"):
66
SCHEDULES.inclusive += ['docs']
67
68
with Files("**/*.jsm"):
69
SCHEDULES.inclusive += ['docs']
70
71
with Files("**/*.rst"):
72
SCHEDULES.inclusive += ['docs']
73
74
with Files("**/*.md"):
75
SCHEDULES.inclusive += ['docs']
76
77
with Files("**/reftest.list"):
78
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
79
SCHEDULES.exclusive = ['reftest']
80
81
with Files("**/crashtest*.list"):
82
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
83
SCHEDULES.exclusive = ['reftest']
84
85
with Files("**/mochitest.ini"):
86
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
87
SCHEDULES.exclusive = ['mochitest']
88
89
with Files("**/browser.ini"):
90
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
91
SCHEDULES.exclusive = ['mochitest']
92
93
with Files("**/chrome.ini"):
94
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
95
SCHEDULES.exclusive = ['mochitest']
96
97
with Files("**/xpcshell.ini"):
98
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
99
SCHEDULES.exclusive = ['xpcshell']
100
101
with Files("**/reftest*/**"):
102
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
103
SCHEDULES.exclusive = ['reftest']
104
105
with Files("**/crashtest*/**"):
106
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
107
SCHEDULES.exclusive = ['reftest']
108
109
with Files("**/mochitest*/**"):
110
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
111
SCHEDULES.exclusive = ['mochitest']
112
113
with Files("**/xpcshell/**"):
114
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
115
SCHEDULES.exclusive = ['xpcshell']
116
117
with Files("**/tests/**"):
118
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
119
120
with Files("**/test/**"):
121
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
122
123
with Files("**/unit/**"):
124
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
125
126
with Files("**/browser/tools/mozscreenshots/**"):
127
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
128
129
with Files("**/devtools/shared/test-helpers/**"):
130
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
131
132
CONFIGURE_SUBST_FILES += [
133
'config/autoconf.mk',
134
'config/emptyvars.mk',
135
]
136
137
if CONFIG['ENABLE_CLANG_PLUGIN']:
138
DIRS += ['build/clang-plugin']
139
140
DIRS += [
141
'config',
142
'python',
143
'testing/mozbase',
144
'third_party/python',
145
]
146
147
if not CONFIG['JS_STANDALONE']:
148
DIRS += ['taskcluster']
149
150
if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
151
CONFIGURE_DEFINE_FILES += [
152
'mozilla-config.h',
153
]
154
EXPORTS += [
155
'!buildid.h',
156
'!mozilla-config.h',
157
'!source-repo.h',
158
]
159
160
GENERATED_FILES += [
161
'buildid.h',
162
'source-repo.h',
163
]
164
165
GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
166
GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
167
GENERATED_FILES['source-repo.h'].py2 = True
168
169
DIRS += [
170
'build',
171
]
172
173
DIRS += [
174
'mfbt',
175
]
176
177
if CONFIG['MOZ_BUILD_APP']:
178
# Bring in the configuration for the configured application.
179
include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
180
else:
181
include('/toolkit/toolkit.mozbuild')
182
183
OBJDIR_PP_FILES['.cargo'] += ['.cargo/config.in']
184
185
DEFINES['top_srcdir'] = TOPSRCDIR
186
187
SPHINX_TREES['contributing'] = 'docs/contributing'
188
189
SPHINX_TREES['code-quality'] = 'docs/code-quality'
190
191
include('build/templates.mozbuild')