Bug 1625744 [wpt PR 22515] - Add two more FCP tests, based on new spec changes, a...
[gecko.git] / moz.build
blob058ada03d1a8d41a09fd6218b87c0f023baf1eea
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 = ('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')
31 with Files("docs/**"):
32     BUG_COMPONENT = ("Firefox Build System", "Generated Documentation")
33     SCHEDULES.exclusive = ['docs']
35 with Files('mach'):
36     BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
38 with Files('*moz*'):
39     BUG_COMPONENT = ('Firefox Build System', 'General')
41 with Files('GNUmakefile'):
42     BUG_COMPONENT = ('Firefox Build System', 'General')
44 with Files('*gradle*'):
45     BUG_COMPONENT = ('GeckoView', 'General')
46     SCHEDULES.exclusive = ['android']
48 with Files('*.json'):
49     BUG_COMPONENT = ('Firefox Build System', 'General')
51 with Files('**/l10n.toml'):
52     BUG_COMPONENT = ('Core', 'Localization')
53     FINAL = True
55 with Files('README.txt'):
56     BUG_COMPONENT = ('Core', 'General')
58 with Files("nsprpub/**"):
59     BUG_COMPONENT = ("NSPR", "NSPR")
61 with Files('**/Makefile.in'):
62     BUG_COMPONENT = ('Firefox Build System', 'General')
63     FINAL = True
65 with Files("**/*.js"):
66     SCHEDULES.inclusive += ['docs']
68 with Files("**/*.jsm"):
69     SCHEDULES.inclusive += ['docs']
71 with Files("**/*.rst"):
72     SCHEDULES.inclusive += ['docs']
74 with Files("**/*.md"):
75     SCHEDULES.inclusive += ['docs']
77 with Files("**/reftest.list"):
78     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
79     SCHEDULES.exclusive = ['reftest']
81 with Files("**/crashtest*.list"):
82     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
83     SCHEDULES.exclusive = ['crashtest']
85 with Files("**/a11y.ini"):
86     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
87     SCHEDULES.exclusive = ['mochitest-a11y']
89 with Files("**/mochitest.ini"):
90     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
91     SCHEDULES.exclusive = ['mochitest-plain']
93 with Files("**/browser.ini"):
94     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
95     SCHEDULES.exclusive = ['mochitest-browser-chrome']
97 with Files("**/chrome.ini"):
98     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
99     SCHEDULES.exclusive = ['mochitest-chrome']
101 with Files("**/xpcshell.ini"):
102     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
103     SCHEDULES.exclusive = ['xpcshell']
105 with Files("**/reftest*/**"):
106     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
107     SCHEDULES.exclusive = ['reftest']
109 with Files("**/crashtest*/**"):
110     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
111     SCHEDULES.exclusive = ['crashtest']
113 with Files("**/mochitest*/**"):
114     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
115     SCHEDULES.exclusive = ['mochitest']
117 with Files("**/xpcshell/**"):
118     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
119     SCHEDULES.exclusive = ['xpcshell']
121 with Files("**/tests/**"):
122     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
124 with Files("**/test/**"):
125     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
127 with Files("**/unit/**"):
128     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
130 with Files("**/browser/tools/mozscreenshots/**"):
131     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
133 with Files("**/devtools/shared/test-helpers/**"):
134     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
136 CONFIGURE_SUBST_FILES += [
137     'config/autoconf.mk',
138     'config/emptyvars.mk',
141 if CONFIG['ENABLE_CLANG_PLUGIN']:
142     DIRS += ['build/clang-plugin']
144 DIRS += [
145     'config',
146     'python',
147     'testing/mozbase',
148     'third_party/python',
151 if not CONFIG['JS_STANDALONE']:
152     DIRS += ['taskcluster']
154 if not CONFIG['JS_STANDALONE'] or not CONFIG['MOZ_BUILD_APP']:
155     CONFIGURE_DEFINE_FILES += [
156         'mozilla-config.h',
157     ]
158     EXPORTS += [
159         '!buildid.h',
160         '!mozilla-config.h',
161         '!source-repo.h',
162     ]
164     GENERATED_FILES += [
165         'buildid.h',
166         'source-repo.h',
167     ]
169     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
170     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
172     DIRS += [
173         'build',
174     ]
176 DIRS += [
177     'mfbt',
180 if CONFIG['MOZ_BUILD_APP']:
181     # Bring in the configuration for the configured application.
182     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
183 else:
184     include('/toolkit/toolkit.mozbuild')
186 OBJDIR_PP_FILES['.cargo'] += ['.cargo/config.in']
188 DEFINES['top_srcdir'] = TOPSRCDIR
190 SPHINX_TREES['contributing'] = 'docs/contributing'
192 SPHINX_TREES['code-quality'] = 'docs/code-quality'
194 SPHINX_TREES['bug-mgmt'] = 'docs/bug-mgmt'
196 include('build/templates.mozbuild')