Bug 1557368 [wpt PR 16856] - Update error type test for attachInternals(), a=testonly
[gecko.git] / moz.build
blobec9fff4ac84168185764dbb3867887aa2e0ebf1a
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('mach'):
32     BUG_COMPONENT = ('Firefox Build System', 'Mach Core')
34 with Files('*moz*'):
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']
44 with Files('*.json'):
45     BUG_COMPONENT = ('Firefox Build System', 'General')
47 with Files('**/l10n.toml'):
48     BUG_COMPONENT = ('Core', 'Localization')
49     FINAL = True
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')
59     FINAL = True
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 with Files("**/toolkit/components/perf/**"):
119     SCHEDULES.inclusive += ['test-verify', 'test-verify-gpu']
121 CONFIGURE_SUBST_FILES += [
122     'config/autoconf.mk',
123     'config/emptyvars.mk',
126 if CONFIG['ENABLE_CLANG_PLUGIN']:
127     DIRS += ['build/clang-plugin']
129 DIRS += [
130     'config',
131     'python',
132     'taskcluster',
133     'testing/mozbase',
134     'third_party/python',
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     ]
147     GENERATED_FILES += [
148         'buildid.h',
149         'source-repo.h',
150     ]
152     GENERATED_FILES['buildid.h'].script = 'build/variables.py:buildid_header'
153     GENERATED_FILES['source-repo.h'].script = 'build/variables.py:source_repo_header'
155     DIRS += [
156         'build',
157     ]
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     ]
169 DIRS += [
170     'mfbt',
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')
179 CONFIGURE_SUBST_FILES += ['.cargo/config']
181 include('build/templates.mozbuild')