| 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/. |
| 6 |
|
| 7 |
with Files("AUTHORS"): |
| 8 |
BUG_COMPONENT = ("mozilla.org", "Licensing") |
| 9 |
|
| 10 |
with Files("LICENSE"): |
| 11 |
BUG_COMPONENT = ("mozilla.org", "Licensing") |
| 12 |
|
| 13 |
with Files("mots.yaml"): |
| 14 |
BUG_COMPONENT = ("Conduit", "mots") |
| 15 |
|
| 16 |
with Files("Cargo.*"): |
| 17 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 18 |
|
| 19 |
with Files("client.*"): |
| 20 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 21 |
|
| 22 |
with Files("CLOBBER"): |
| 23 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 24 |
|
| 25 |
with Files("*configure*"): |
| 26 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 27 |
|
| 28 |
with Files("docs/**"): |
| 29 |
BUG_COMPONENT = ("Developer Infrastructure", "Source Documentation") |
| 30 |
SCHEDULES.exclusive = ["docs"] |
| 31 |
|
| 32 |
with Files("eslint*"): |
| 33 |
BUG_COMPONENT = ("Developer Infrastructure", "Lint and Formatting") |
| 34 |
|
| 35 |
with Files("mach*"): |
| 36 |
BUG_COMPONENT = ("Firefox Build System", "Mach Core") |
| 37 |
|
| 38 |
with Files("pyproject.toml", "srcdir-resolver.js"): |
| 39 |
BUG_COMPONENT = ("Developer Infrastructure", "Lint and Formatting") |
| 40 |
|
| 41 |
with Files("*moz*"): |
| 42 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 43 |
|
| 44 |
with Files("GNUmakefile"): |
| 45 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 46 |
|
| 47 |
with Files("*gradle*"): |
| 48 |
BUG_COMPONENT = ("GeckoView", "General") |
| 49 |
SCHEDULES.exclusive = ["android"] |
| 50 |
|
| 51 |
with Files("*.json"): |
| 52 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 53 |
|
| 54 |
with Files("**/l10n.toml"): |
| 55 |
BUG_COMPONENT = ("Core", "Localization") |
| 56 |
FINAL = True |
| 57 |
|
| 58 |
with Files("README.md"): |
| 59 |
BUG_COMPONENT = ("Core", "General") |
| 60 |
|
| 61 |
with Files("CODE_OF_CONDUCT.md"): |
| 62 |
BUG_COMPONENT = ("Core", "General") |
| 63 |
|
| 64 |
with Files("SECURITY.md"): |
| 65 |
BUG_COMPONENT = ("Core", "DOM: Security") |
| 66 |
|
| 67 |
with Files("nsprpub/**"): |
| 68 |
BUG_COMPONENT = ("NSPR", "NSPR") |
| 69 |
|
| 70 |
with Files("**/Makefile.in"): |
| 71 |
BUG_COMPONENT = ("Firefox Build System", "General") |
| 72 |
FINAL = True |
| 73 |
|
| 74 |
with Files("**/*.rst"): |
| 75 |
SCHEDULES.inclusive += ["docs"] |
| 76 |
|
| 77 |
with Files("**/*.md"): |
| 78 |
SCHEDULES.inclusive += ["docs"] |
| 79 |
|
| 80 |
with Files("**/*.rs"): |
| 81 |
SCHEDULES.inclusive += ["rusttests"] |
| 82 |
|
| 83 |
with Files("**/reftest.list"): |
| 84 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 85 |
SCHEDULES.exclusive = ["reftest"] |
| 86 |
|
| 87 |
with Files("**/reftest-qr.list"): |
| 88 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 89 |
SCHEDULES.exclusive = ["reftest"] |
| 90 |
|
| 91 |
with Files("**/crashtest*.list"): |
| 92 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 93 |
SCHEDULES.exclusive = ["crashtest"] |
| 94 |
|
| 95 |
with Files("**/a11y.toml"): |
| 96 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 97 |
SCHEDULES.exclusive = ["mochitest-a11y"] |
| 98 |
|
| 99 |
with Files("**/mochitest.toml"): |
| 100 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 101 |
SCHEDULES.exclusive = ["mochitest-plain"] |
| 102 |
|
| 103 |
with Files("**/browser.toml"): |
| 104 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 105 |
SCHEDULES.exclusive = ["mochitest-browser-chrome"] |
| 106 |
|
| 107 |
with Files("**/test*/**browser_*"): |
| 108 |
SCHEDULES.exclusive = ["mochitest-browser-chrome"] |
| 109 |
|
| 110 |
with Files("**/chrome.toml"): |
| 111 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 112 |
SCHEDULES.exclusive = ["mochitest-chrome"] |
| 113 |
|
| 114 |
with Files("**/xpcshell.toml"): |
| 115 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 116 |
SCHEDULES.exclusive = ["xpcshell"] |
| 117 |
|
| 118 |
with Files("**/reftest*/**"): |
| 119 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 120 |
SCHEDULES.exclusive = ["reftest"] |
| 121 |
|
| 122 |
with Files("**/crashtest*/**"): |
| 123 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 124 |
SCHEDULES.exclusive = ["crashtest"] |
| 125 |
|
| 126 |
with Files("**/mochitest*/**"): |
| 127 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 128 |
SCHEDULES.exclusive = ["mochitest"] |
| 129 |
|
| 130 |
with Files("**/xpcshell/**"): |
| 131 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 132 |
SCHEDULES.exclusive = ["xpcshell"] |
| 133 |
|
| 134 |
with Files("**/tests/**"): |
| 135 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 136 |
|
| 137 |
with Files("**/test/**"): |
| 138 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 139 |
|
| 140 |
with Files("**/unit/**"): |
| 141 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 142 |
|
| 143 |
with Files("**/browser/tools/mozscreenshots/**"): |
| 144 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 145 |
|
| 146 |
with Files("**/devtools/shared/test-helpers/**"): |
| 147 |
SCHEDULES.inclusive += ["test-verify", "test-verify-gpu"] |
| 148 |
|
| 149 |
CONFIGURE_SUBST_FILES += [ |
| 150 |
"config/autoconf.mk", |
| 151 |
"config/emptyvars.mk", |
| 152 |
] |
| 153 |
|
| 154 |
if CONFIG["ENABLE_CLANG_PLUGIN"]: |
| 155 |
DIRS += ["build/clang-plugin"] |
| 156 |
|
| 157 |
DIRS += [ |
| 158 |
"build", |
| 159 |
"config", |
| 160 |
"python", |
| 161 |
"testing", |
| 162 |
"third_party/python", |
| 163 |
] |
| 164 |
|
| 165 |
if not CONFIG["JS_STANDALONE"]: |
| 166 |
DIRS += ["taskcluster"] |
| 167 |
|
| 168 |
if not CONFIG["JS_STANDALONE"] or not CONFIG["MOZ_BUILD_APP"]: |
| 169 |
CONFIGURE_DEFINE_FILES += [ |
| 170 |
"mozilla-config.h", |
| 171 |
] |
| 172 |
EXPORTS += [ |
| 173 |
"!buildid.h", |
| 174 |
"!mozilla-config.h", |
| 175 |
"!source-repo.h", |
| 176 |
] |
| 177 |
|
| 178 |
GENERATED_FILES += [ |
| 179 |
"buildid.h", |
| 180 |
"source-repo.h", |
| 181 |
] |
| 182 |
|
| 183 |
GENERATED_FILES["buildid.h"].script = "build/variables.py:buildid_header" |
| 184 |
GENERATED_FILES["source-repo.h"].script = "build/variables.py:source_repo_header" |
| 185 |
|
| 186 |
if CONFIG["MOZ_BUILD_APP"]: |
| 187 |
# Bring in the configuration for the configured application. |
| 188 |
include("/" + CONFIG["MOZ_BUILD_APP"] + "/app.mozbuild") |
| 189 |
else: |
| 190 |
include("/toolkit/toolkit.mozbuild") |
| 191 |
|
| 192 |
OBJDIR_PP_FILES[".cargo"] += [ |
| 193 |
CONFIG["MOZ_OVERRIDE_CARGO_CONFIG"] or ".cargo/config.toml.in" |
| 194 |
] |
| 195 |
|
| 196 |
DEFINES["top_srcdir"] = TOPSRCDIR |
| 197 |
|
| 198 |
SPHINX_TREES["contributing"] = "docs/contributing" |
| 199 |
|
| 200 |
SPHINX_TREES["code-quality"] = "docs/code-quality" |
| 201 |
|
| 202 |
SPHINX_TREES["testing-rust-code"] = "docs/testing-rust-code" |
| 203 |
|
| 204 |
SPHINX_TREES["writing-rust-code"] = "docs/writing-rust-code" |
| 205 |
|
| 206 |
SPHINX_TREES["rust-components"] = "docs/rust-components" |
| 207 |
|
| 208 |
SPHINX_TREES["bug-mgmt"] = "docs/bug-mgmt" |
| 209 |
|
| 210 |
SPHINX_TREES["glossary"] = "docs/glossary" |
| 211 |
|
| 212 |
SPHINX_TREES["overview"] = "docs/overview" |
| 213 |
|
| 214 |
SPHINX_TREES["setup"] = "docs/setup" |
| 215 |
|
| 216 |
SPHINX_TREES["crash-reporting"] = "docs/crash-reporting" |
| 217 |
|
| 218 |
SPHINX_TREES["performance"] = "docs/performance" |
| 219 |
|
| 220 |
SPHINX_TREES["metrics"] = "docs/metrics" |
| 221 |
|
| 222 |
SPHINX_TREES["gtest"] = "docs/gtest" |
| 223 |
|
| 224 |
SPHINX_TREES["nspr"] = "docs/nspr" |
| 225 |
|
| 226 |
SPHINX_TREES["mots"] = "docs/mots" |
| 227 |
|
| 228 |
SPHINX_TREES["update-infrastructure"] = "docs/update-infrastructure" |
| 229 |
|
| 230 |
SPHINX_TREES["content-security"] = "docs/content-security" |
| 231 |
|
| 232 |
SPHINX_TREES["jsloader"] = "docs/jsloader" |
| 233 |
|
| 234 |
include("build/templates.mozbuild") |