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/.
8 BUG_COMPONENT = ('mozilla.org', 'Licensing')
10 with Files('LICENSE'):
11 BUG_COMPONENT = ('mozilla.org', 'Licensing')
14 BUG_COMPONENT = ('mozilla.org', 'Licensing')
16 with Files('aclocal.m4'):
17 BUG_COMPONENT = ('Firefox Build System', 'General')
19 with Files('Cargo.*'):
20 BUG_COMPONENT = ('Firefox Build System', 'General')
22 with Files('client.*'):
23 BUG_COMPONENT = ('Firefox Build System', 'General')
25 with Files('CLOBBER'):
26 BUG_COMPONENT = ('Firefox Build System', 'General')
28 with Files('*configure*'):
29 BUG_COMPONENT = ('Firefox Build System', 'General')
32 BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
35 BUG_COMPONENT = ('Firefox Build System', 'General')
37 with Files('GNUmakefile'):
38 BUG_COMPONENT = ('Firefox Build System', 'General')
40 with Files('*gradle*'):
41 BUG_COMPONENT = ('Firefox for Android', 'Build Config & IDE Support')
42 SCHEDULES.exclusive = ['android']
45 BUG_COMPONENT = ('Firefox Build System', 'General')
47 with Files('**/l10n.toml'):
48 BUG_COMPONENT = ('Core', 'Localization')
51 with Files('README.txt'):
52 BUG_COMPONENT = ('Core', 'General')
54 with Files("nsprpub/**"):
55 BUG_COMPONENT = ("NSPR", "NSPR")
57 with Files('**/Makefile.in'):
58 BUG_COMPONENT = ('Firefox Build System', 'General')
61 with Files("**/*.js"):
62 SCHEDULES.inclusive += ['docs']
64 with Files("**/*.jsm"):
65 SCHEDULES.inclusive += ['docs']
67 with Files("**/*.rst"):
68 SCHEDULES.inclusive += ['docs']
70 with Files("**/*.md"):
71 SCHEDULES.inclusive += ['docs']
73 with Files("**/reftest.list"):
74 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
76 with Files("**/crashtest*.list"):
77 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
79 with Files("**/mochitest.ini"):
80 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
82 with Files("**/browser.ini"):
83 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
85 with Files("**/chrome.ini"):
86 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
88 with Files("**/xpcshell.ini"):
89 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
91 with Files("**/reftest*/**"):
92 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
94 with Files("**/crashtest*/**"):
95 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
97 with Files("**/mochitest*/**"):
98 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
100 with Files("**/xpcshell/**"):
101 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
103 with Files("**/tests/**"):
104 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
106 with Files("**/test/**"):
107 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
109 with Files("**/unit/**"):
110 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
112 with Files("**/browser/tools/mozscreenshots/**"):
113 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
115 with Files("**/devtools/shared/test-helpers/**"):
116 SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
118 CONFIGURE_SUBST_FILES += [
119 'config/autoconf.mk',
120 'config/emptyvars.mk',
123 if CONFIG['ENABLE_CLANG_PLUGIN']:
124 DIRS += ['build/clang-plugin']
131 'third_party/python',
134 if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
135 CONFIGURE_DEFINE_FILES += [
149 GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
150 GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
156 if CONFIG['PGO_PROFILE_PATH']:
157 profdata_gen = ('merged.profdata.stub', 'merged.profdata')
161 GENERATED_FILES[profdata_gen].script = 'build/merge_profdata.py'
162 GENERATED_FILES[profdata_gen].inputs = [
163 '/' + CONFIG['PGO_PROFILE_PATH'],
170 if CONFIG['MOZ_BUILD_APP']:
171 # Bring in the configuration for the configured application.
172 include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
174 include('/toolkit/toolkit.mozbuild')
176 CONFIGURE_SUBST_FILES += ['.cargo/config']
178 include('build/templates.mozbuild')