Bug 1806067 [wpt PR 37543] - WebKit export of https://bugs.webkit.org/show_bug.cgi...
[gecko.git] / moz.build
blob80e23e9e7c07d31ddb2063f84d4939a13bee1c5f
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("mots.yaml"):
14     BUG_COMPONENT = ("Conduit", "mots")
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("**/*.rst"):
66     SCHEDULES.inclusive += ["docs"]
68 with Files("**/*.md"):
69     SCHEDULES.inclusive += ["docs"]
71 with Files("**/*.rs"):
72     SCHEDULES.inclusive += ["rusttests"]
74 with Files("**/reftest.list"):
75     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
76     SCHEDULES.exclusive = ["reftest"]
78 with Files("**/reftest-qr.list"):
79     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
80     SCHEDULES.exclusive = ["reftest"]
82 with Files("**/crashtest*.list"):
83     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
84     SCHEDULES.exclusive = ["crashtest"]
86 with Files("**/a11y.ini"):
87     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
88     SCHEDULES.exclusive = ["mochitest-a11y"]
90 with Files("**/mochitest.ini"):
91     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
92     SCHEDULES.exclusive = ["mochitest-plain"]
94 with Files("**/browser.ini"):
95     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
96     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
98 with Files("**/test*/**browser_*"):
99     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
101 with Files("**/chrome.ini"):
102     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
103     SCHEDULES.exclusive = ["mochitest-chrome"]
105 with Files("**/xpcshell.ini"):
106     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
107     SCHEDULES.exclusive = ["xpcshell"]
109 with Files("**/reftest*/**"):
110     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
111     SCHEDULES.exclusive = ["reftest"]
113 with Files("**/crashtest*/**"):
114     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
115     SCHEDULES.exclusive = ["crashtest"]
117 with Files("**/mochitest*/**"):
118     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
119     SCHEDULES.exclusive = ["mochitest"]
121 with Files("**/xpcshell/**"):
122     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
123     SCHEDULES.exclusive = ["xpcshell"]
125 with Files("**/tests/**"):
126     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
128 with Files("**/test/**"):
129     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
131 with Files("**/unit/**"):
132     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
134 with Files("**/browser/tools/mozscreenshots/**"):
135     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
137 with Files("**/devtools/shared/test-helpers/**"):
138     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
140 CONFIGURE_SUBST_FILES += [
141     "config/autoconf.mk",
142     "config/emptyvars.mk",
145 if CONFIG["ENABLE_CLANG_PLUGIN"]:
146     DIRS += ["build/clang-plugin"]
148 DIRS += [
149     "build",
150     "config",
151     "python",
152     "testing",
153     "third_party/python",
156 if not CONFIG["JS_STANDALONE"]:
157     DIRS += ["taskcluster"]
159 if not CONFIG["JS_STANDALONE"] or not CONFIG["MOZ_BUILD_APP"]:
160     CONFIGURE_DEFINE_FILES += [
161         "mozilla-config.h",
162     ]
163     EXPORTS += [
164         "!buildid.h",
165         "!mozilla-config.h",
166         "!source-repo.h",
167     ]
169     GENERATED_FILES += [
170         "buildid.h",
171         "source-repo.h",
172     ]
174     GENERATED_FILES["buildid.h"].script = "build/variables.py:buildid_header"
175     GENERATED_FILES["source-repo.h"].script = "build/variables.py:source_repo_header"
177 if CONFIG["MOZ_BUILD_APP"]:
178     # Bring in the configuration for the configured application.
179     include("/" + CONFIG["MOZ_BUILD_APP"] + "/app.mozbuild")
180 else:
181     include("/toolkit/toolkit.mozbuild")
183 OBJDIR_PP_FILES[".cargo"] += [".cargo/config.in"]
185 DEFINES["top_srcdir"] = TOPSRCDIR
187 SPHINX_TREES["contributing"] = "docs/contributing"
189 SPHINX_TREES["code-quality"] = "docs/code-quality"
191 SPHINX_TREES["testing-rust-code"] = "docs/testing-rust-code"
193 SPHINX_TREES["writing-rust-code"] = "docs/writing-rust-code"
195 SPHINX_TREES["bug-mgmt"] = "docs/bug-mgmt"
197 SPHINX_TREES["setup"] = "docs/setup"
199 SPHINX_TREES["crash-reporting"] = "docs/crash-reporting"
201 SPHINX_TREES["performance"] = "docs/performance"
203 SPHINX_TREES["metrics"] = "docs/metrics"
205 SPHINX_TREES["gtest"] = "docs/gtest"
207 SPHINX_TREES["nspr"] = "docs/nspr"
209 SPHINX_TREES["mots"] = "docs/mots"
211 SPHINX_TREES["update-infrastructure"] = "docs/update-infrastructure"
213 include("build/templates.mozbuild")