Backed out changeset 7eda7968bffa (bug 1869833) for causing mochitests failures in...
[gecko.git] / browser / components / moz.build
blob88301045a66dcf5c8c8790e198cbedcd8a949c40
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("**"):
8     BUG_COMPONENT = ("Firefox", "General")
10 with Files("distribution.sys.mjs"):
11     BUG_COMPONENT = ("Firefox", "Distributions")
13 with Files("tests/**"):
14     BUG_COMPONENT = ("Firefox", "General")
16 with Files("tests/browser/browser_contentpermissionprompt.js"):
17     BUG_COMPONENT = ("Firefox", "Site Permissions")
19 with Files("tests/unit/test_distribution.js"):
20     BUG_COMPONENT = ("Firefox", "Distributions")
22 with Files("safebrowsing/**"):
23     BUG_COMPONENT = ("Toolkit", "Safe Browsing")
25 with Files("controlcenter/**"):
26     BUG_COMPONENT = ("Firefox", "General")
29 DIRS += [
30     "about",
31     "aboutlogins",
32     "aboutwelcome",
33     "asrouter",
34     "attribution",
35     "contentanalysis",
36     "contextualidentity",
37     "customizableui",
38     "doh",
39     "downloads",
40     "enterprisepolicies",
41     "extensions",
42     "firefoxview",
43     "ion",
44     "messagepreview",
45     "migration",
46     "newtab",
47     "originattributes",
48     "pagedata",
49     "places",
50     "pocket",
51     "preferences",
52     "privatebrowsing",
53     "prompts",
54     "protections",
55     "protocolhandler",
56     "reportbrokensite",
57     "resistfingerprinting",
58     "screenshots",
59     "search",
60     "sessionstore",
61     "shell",
62     "shopping",
63     "syncedtabs",
64     "tabunloader",
65     "textrecognition",
66     "translations",
67     "uitour",
68     "urlbar",
71 DIRS += ["build"]
74 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
75     DIRS += ["touchbar"]
76 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
77     DIRS += ["installerprefs"]
79 XPIDL_SOURCES += [
80     "nsIBrowserHandler.idl",
83 XPIDL_MODULE = "browsercompsbase"
85 XPCOM_MANIFESTS += [
86     "components.conf",
89 EXTRA_COMPONENTS += [
90     "BrowserComponents.manifest",
93 EXTRA_JS_MODULES += [
94     "BrowserContentHandler.sys.mjs",
95     "BrowserGlue.sys.mjs",
96     "distribution.sys.mjs",
99 if CONFIG["MOZ_DEBUG"] or CONFIG["MOZ_DEV_EDITION"] or CONFIG["NIGHTLY_BUILD"]:
100     EXTRA_JS_MODULES += [
101         "StartupRecorder.sys.mjs",
102     ]
104 BROWSER_CHROME_MANIFESTS += [
105     "safebrowsing/content/test/browser.toml",
106     "tests/browser/browser.toml",
109 if CONFIG["MOZ_UPDATER"]:
110     BROWSER_CHROME_MANIFESTS += [
111         "tests/browser/whats_new_page/browser.toml",
112     ]
114 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]