Bug 1684463 - [devtools] Part 1: Shorten the _createAttribute function by refactoring...
[gecko.git] / moz.build
blob20a16fa945a520326d15b9394f8561b6920ee90c
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("aclocal.m4"):
14     BUG_COMPONENT = ("Firefox Build System", "General")
16 with Files("Cargo.*"):
17     BUG_COMPONENT = ("Firefox Build System", "General")
19 with Files("client.*"):
20     BUG_COMPONENT = ("Firefox Build System", "General")
22 with Files("CLOBBER"):
23     BUG_COMPONENT = ("Firefox Build System", "General")
25 with Files("*configure*"):
26     BUG_COMPONENT = ("Firefox Build System", "General")
28 with Files("docs/**"):
29     BUG_COMPONENT = ("Firefox Build System", "Generated Documentation")
30     SCHEDULES.exclusive = ["docs"]
32 with Files("mach"):
33     BUG_COMPONENT = ("Firefox Build System", "Mach Core")
35 with Files("*moz*"):
36     BUG_COMPONENT = ("Firefox Build System", "General")
38 with Files("GNUmakefile"):
39     BUG_COMPONENT = ("Firefox Build System", "General")
41 with Files("*gradle*"):
42     BUG_COMPONENT = ("GeckoView", "General")
43     SCHEDULES.exclusive = ["android"]
45 with Files("*.json"):
46     BUG_COMPONENT = ("Firefox Build System", "General")
48 with Files("**/l10n.toml"):
49     BUG_COMPONENT = ("Core", "Localization")
50     FINAL = True
52 with Files("README.txt"):
53     BUG_COMPONENT = ("Core", "General")
55 with Files("nsprpub/**"):
56     BUG_COMPONENT = ("NSPR", "NSPR")
58 with Files("**/Makefile.in"):
59     BUG_COMPONENT = ("Firefox Build System", "General")
60     FINAL = True
62 with Files("**/*.rst"):
63     SCHEDULES.inclusive += ["docs"]
65 with Files("**/*.md"):
66     SCHEDULES.inclusive += ["docs"]
68 with Files("**/*.rs"):
69     SCHEDULES.inclusive += ["rusttests"]
71 with Files("**/reftest.list"):
72     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
73     SCHEDULES.exclusive = ["reftest"]
75 with Files("**/reftest-qr.list"):
76     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
77     SCHEDULES.exclusive = ["reftest"]
79 with Files("**/crashtest*.list"):
80     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
81     SCHEDULES.exclusive = ["crashtest"]
83 with Files("**/a11y.ini"):
84     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
85     SCHEDULES.exclusive = ["mochitest-a11y"]
87 with Files("**/mochitest.ini"):
88     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
89     SCHEDULES.exclusive = ["mochitest-plain"]
91 with Files("**/browser.ini"):
92     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
93     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
95 with Files("**/test*/**browser_*"):
96     SCHEDULES.exclusive = ["mochitest-browser-chrome"]
98 with Files("**/chrome.ini"):
99     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
100     SCHEDULES.exclusive = ["mochitest-chrome"]
102 with Files("**/xpcshell.ini"):
103     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
104     SCHEDULES.exclusive = ["xpcshell"]
106 with Files("**/reftest*/**"):
107     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
108     SCHEDULES.exclusive = ["reftest"]
110 with Files("**/crashtest*/**"):
111     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
112     SCHEDULES.exclusive = ["crashtest"]
114 with Files("**/mochitest*/**"):
115     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
116     SCHEDULES.exclusive = ["mochitest"]
118 with Files("**/xpcshell/**"):
119     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
120     SCHEDULES.exclusive = ["xpcshell"]
122 with Files("**/tests/**"):
123     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
125 with Files("**/test/**"):
126     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
128 with Files("**/unit/**"):
129     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
131 with Files("**/browser/tools/mozscreenshots/**"):
132     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
134 with Files("**/devtools/shared/test-helpers/**"):
135     SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"]
137 CONFIGURE_SUBST_FILES += [
138     "config/autoconf.mk",
139     "config/emptyvars.mk",
142 if CONFIG["ENABLE_CLANG_PLUGIN"]:
143     DIRS += ["build/clang-plugin"]
145 DIRS += [
146     "build",
147     "config",
148     "python",
149     "testing",
150     "third_party/python",
153 if not CONFIG["JS_STANDALONE"]:
154     DIRS += ["taskcluster"]
156 if not CONFIG["JS_STANDALONE"] or not CONFIG["MOZ_BUILD_APP"]:
157     CONFIGURE_DEFINE_FILES += [
158         "mozilla-config.h",
159     ]
160     EXPORTS += [
161         "!buildid.h",
162         "!mozilla-config.h",
163         "!source-repo.h",
164     ]
166     GENERATED_FILES += [
167         "buildid.h",
168         "source-repo.h",
169     ]
171     GENERATED_FILES["buildid.h"].script = "build/variables.py:buildid_header"
172     GENERATED_FILES["source-repo.h"].script = "build/variables.py:source_repo_header"
174 if CONFIG["MOZ_BUILD_APP"]:
175     # Bring in the configuration for the configured application.
176     include("/" + CONFIG["MOZ_BUILD_APP"] + "/app.mozbuild")
177 else:
178     include("/toolkit/toolkit.mozbuild")
180 OBJDIR_PP_FILES[".cargo"] += [".cargo/config.in"]
182 DEFINES["top_srcdir"] = TOPSRCDIR
184 SPHINX_TREES["contributing"] = "docs/contributing"
186 SPHINX_TREES["code-quality"] = "docs/code-quality"
188 SPHINX_TREES["testing-rust-code"] = "docs/testing-rust-code"
190 SPHINX_TREES["writing-rust-code"] = "docs/writing-rust-code"
192 SPHINX_TREES["bug-mgmt"] = "docs/bug-mgmt"
194 SPHINX_TREES["setup"] = "docs/setup"
196 SPHINX_TREES["crash-reporting"] = "docs/crash-reporting"
198 include("build/templates.mozbuild")