tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (6995B)


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