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('mach'):
32
BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
33
34
with Files('*moz*'):
35
BUG_COMPONENT = ('Firefox Build System', 'General')
36
37
with Files('GNUmakefile'):
38
BUG_COMPONENT = ('Firefox Build System', 'General')
39
40
with Files('*gradle*'):
41
BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')
42
SCHEDULES.exclusive = ['android']
43
44
with Files('*.json'):
45
BUG_COMPONENT = ('Firefox Build System', 'General')
46
47
with Files('**/l10n.toml'):
48
BUG_COMPONENT = ('Core', 'Localization')
49
FINAL = True
50
51
with Files('README.txt'):
52
BUG_COMPONENT = ('Core', 'General')
53
54
with Files("nsprpub/**"):
55
BUG_COMPONENT = ("NSPR", "NSPR")
56
57
with Files('**/Makefile.in'):
58
BUG_COMPONENT = ('Firefox Build System', 'General')
59
FINAL = True
60
61
with Files("**/*.js"):
62
SCHEDULES.inclusive += ['docs']
63
64
with Files("**/*.jsm"):
65
SCHEDULES.inclusive += ['docs']
66
67
with Files("**/*.rst"):
68
SCHEDULES.inclusive += ['docs']
69
70
with Files("**/*.md"):
71
SCHEDULES.inclusive += ['docs']
72
73
with Files("**/reftest.list"):
74
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
75
76
with Files("**/crashtest*.list"):
77
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
78
79
with Files("**/mochitest.ini"):
80
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
81
82
with Files("**/browser.ini"):
83
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
84
85
with Files("**/chrome.ini"):
86
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
87
88
with Files("**/xpcshell.ini"):
89
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
90
91
with Files("**/reftest*/**"):
92
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
93
94
with Files("**/crashtest*/**"):
95
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
96
97
with Files("**/mochitest*/**"):
98
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
99
100
with Files("**/xpcshell/**"):
101
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
102
103
with Files("**/tests/**"):
104
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
105
106
with Files("**/test/**"):
107
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
108
109
with Files("**/unit/**"):
110
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
111
112
with Files("**/browser/tools/mozscreenshots/**"):
113
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
114
115
with Files("**/devtools/shared/test-helpers/**"):
116
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
117
118
with Files("**/toolkit/components/perf/**"):
119
SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
120
121
CONFIGURE_SUBST_FILES += [
122
'config/autoconf.mk',
123
'config/emptyvars.mk',
124
]
125
126
if CONFIG['ENABLE_CLANG_PLUGIN']:
127
DIRS += ['build/clang-plugin']
128
129
DIRS += [
130
'config',
131
'python',
132
'taskcluster',
133
'testing/mozbase',
134
'third_party/python',
135
]
136
137
if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
138
CONFIGURE_DEFINE_FILES += [
139
'mozilla-config.h',
140
]
141
EXPORTS += [
142
'!buildid.h',
143
'!mozilla-config.h',
144
'!source-repo.h',
145
]
146
147
GENERATED_FILES += [
148
'buildid.h',
149
'source-repo.h',
150
]
151
152
GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
153
GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
154
155
DIRS += [
156
'build',
157
]
158
159
if CONFIG['PGO_PROFILE_PATH']:
160
profdata_gen = ('merged.profdata.stub', 'merged.profdata')
161
GENERATED_FILES += [
162
profdata_gen
163
]
164
GENERATED_FILES[profdata_gen].script = 'build/merge_profdata.py'
165
GENERATED_FILES[profdata_gen].inputs = [
166
'/' + CONFIG['PGO_PROFILE_PATH'],
167
]
168
169
DIRS += [
170
'mfbt',
171
]
172
173
if CONFIG['MOZ_BUILD_APP']:
174
# Bring in the configuration for the configured application.
175
include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
176
else:
177
include('/toolkit/toolkit.mozbuild')
178
179
CONFIGURE_SUBST_FILES += ['.cargo/config']
180
181
include('build/templates.mozbuild')