Bug 1614722 [wpt PR 21731] - Update wpt metadata, a=testonly
[gecko.git] / moz.build
blob6c3788799c15b3a794b272ac9ff5d239d39face9
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 = ('Firefox for Android', '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 = ['reftest']
85 with Files("**/mochitest.ini"):
86     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
87     SCHEDULES.exclusive = ['mochitest']
89 with Files("**/browser.ini"):
90     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
91     SCHEDULES.exclusive = ['mochitest']
93 with Files("**/chrome.ini"):
94     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
95     SCHEDULES.exclusive = ['mochitest']
97 with Files("**/xpcshell.ini"):
98     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
99     SCHEDULES.exclusive = ['xpcshell']
101 with Files("**/reftest*/**"):
102     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
103     SCHEDULES.exclusive = ['reftest']
105 with Files("**/crashtest*/**"):
106     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
107     SCHEDULES.exclusive = ['reftest']
109 with Files("**/mochitest*/**"):
110     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
111     SCHEDULES.exclusive = ['mochitest']
113 with Files("**/xpcshell/**"):
114     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
115     SCHEDULES.exclusive = ['xpcshell']
117 with Files("**/tests/**"):
118     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
120 with Files("**/test/**"):
121     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
123 with Files("**/unit/**"):
124     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
126 with Files("**/browser/tools/mozscreenshots/**"):
127     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
129 with Files("**/devtools/shared/test-helpers/**"):
130     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
132 CONFIGURE_SUBST_FILES += [
133     'config/autoconf.mk',
134     'config/emptyvars.mk',
137 if CONFIG['ENABLE_CLANG_PLUGIN']:
138     DIRS += ['build/clang-plugin']
140 DIRS += [
141     'config',
142     'python',
143     'testing/mozbase',
144     'third_party/python',
147 if not CONFIG['JS_STANDALONE']:
148     DIRS += ['taskcluster']
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     ]
160     GENERATED_FILES += [
161         'buildid.h',
162         'source-repo.h',
163     ]
165     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
166     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
168     DIRS += [
169         'build',
170     ]
172 DIRS += [
173     'mfbt',
176 if CONFIG['MOZ_BUILD_APP']:
177     # Bring in the configuration for the configured application.
178     include('/' + CONFIG['MOZ_BUILD_APP'] + '/app.mozbuild')
179 else:
180     include('/toolkit/toolkit.mozbuild')
182 OBJDIR_PP_FILES['.cargo'] += ['.cargo/config.in']
184 DEFINES['top_srcdir'] = TOPSRCDIR
186 SPHINX_TREES['contributing'] = 'docs/contributing'
188 SPHINX_TREES['code-quality'] = 'docs/code-quality'
190 include('build/templates.mozbuild')