tor-browser

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

moz.build (3273B)


      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("**"):
      8     BUG_COMPONENT = ("Firefox", "General")
      9 
     10 with Files("distribution.sys.mjs"):
     11     BUG_COMPONENT = ("Firefox", "Distributions")
     12 
     13 with Files("tests/**"):
     14     BUG_COMPONENT = ("Firefox", "General")
     15 
     16 with Files("tests/browser/browser_contentpermissionprompt.js"):
     17     BUG_COMPONENT = ("Firefox", "Site Permissions")
     18 
     19 with Files("tests/unit/test_distribution.js"):
     20     BUG_COMPONENT = ("Firefox", "Distributions")
     21 
     22 with Files("safebrowsing/**"):
     23     BUG_COMPONENT = ("Toolkit", "Safe Browsing")
     24 
     25 with Files("controlcenter/**"):
     26     BUG_COMPONENT = ("Firefox", "General")
     27 
     28 
     29 DIRS += [
     30     "about",
     31     "aboutlogins",
     32     "abouttor",
     33     "aboutwelcome",
     34     "aiwindow",
     35     "asrouter",
     36     "attribution",
     37     "backup",
     38     "contentanalysis",
     39     "contextualidentity",
     40     "customizableui",
     41     "customkeys",
     42     "downloads",
     43     "enterprisepolicies",
     44     "extensions",
     45     # Exclude "genai" component. tor-browser#44045.
     46     "ipprotection",
     47     "messagepreview",
     48     "migration",
     49     "mozcachedohttp",
     50     "multilineeditor",
     51     "newidentity",
     52     # Exclude newtab component. tor-browser#43886.
     53     "onionservices",
     54     "originattributes",
     55     "pagedata",
     56     "permissions",
     57     "places",
     58     "preferences",
     59     "privatebrowsing",
     60     "prompts",
     61     "protocolhandler",
     62     "qrcode",
     63     "reportbrokensite",
     64     "resistfingerprinting",
     65     "rulesets",
     66     "screenshots",
     67     "search",
     68     "security",
     69     "securitylevel",
     70     "sessionstore",
     71     "shell",
     72     "sidebar",
     73     "syncedtabs",
     74     "tabbrowser",
     75     "tabnotes",
     76     "tabunloader",
     77     "taskbartabs",
     78     "textrecognition",
     79     "topsites",
     80     "translations",
     81     "uitour",
     82     "urlbar",
     83     "webrtc",
     84     "torcircuit",
     85     "torpreferences",
     86 ]
     87 
     88 DIRS += ["build"]
     89 
     90 if CONFIG["MOZ_SELECTABLE_PROFILES"]:
     91     DIRS += ["profiles"]
     92 
     93 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
     94     DIRS += ["touchbar"]
     95 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
     96     DIRS += ["installerprefs"]
     97 
     98 XPIDL_SOURCES += [
     99     "nsIBrowserHandler.idl",
    100 ]
    101 
    102 XPIDL_MODULE = "browsercompsbase"
    103 
    104 XPCOM_MANIFESTS += [
    105     "components.conf",
    106 ]
    107 
    108 EXTRA_PP_COMPONENTS += [
    109     "BrowserComponents.manifest",
    110 ]
    111 
    112 EXTRA_JS_MODULES += [
    113     "AccountsGlue.sys.mjs",
    114     "BrowserContentHandler.sys.mjs",
    115     "BrowserGlue.sys.mjs",
    116     "distribution.sys.mjs",
    117 ]
    118 
    119 MOZ_SRC_FILES += [
    120     "DefaultBrowserCheck.sys.mjs",
    121     "DesktopActorRegistry.sys.mjs",
    122     "ProfileDataUpgrader.sys.mjs",
    123     "StartupTelemetry.sys.mjs",
    124 ]
    125 
    126 if CONFIG["MOZ_DEBUG"] or CONFIG["MOZ_DEV_EDITION"] or CONFIG["NIGHTLY_BUILD"]:
    127     EXTRA_JS_MODULES += [
    128         "StartupRecorder.sys.mjs",
    129     ]
    130 
    131 BROWSER_CHROME_MANIFESTS += [
    132     "safebrowsing/content/test/browser.toml",
    133     "tests/browser/browser.toml",
    134     "tests/browser/eval/browser.toml",
    135 ]
    136 
    137 if CONFIG["MOZ_UPDATER"]:
    138     BROWSER_CHROME_MANIFESTS += [
    139         "tests/browser/whats_new_page/browser.toml",
    140     ]
    141 
    142 MARIONETTE_MANIFESTS += ["tests/marionette/manifest.toml"]
    143 
    144 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]