Bug 1883706: part 3) Implement `createHTML`, `createScript` and `createScriptURL...
[gecko.git] / browser / components / moz.build
blob0f91b90fb0ce4eac232d71ad4f9ff82ab7316635
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     "backup",
36     "contentanalysis",
37     "contextualidentity",
38     "customizableui",
39     "doh",
40     "downloads",
41     "enterprisepolicies",
42     "extensions",
43     "firefoxview",
44     "ion",
45     "messagepreview",
46     "migration",
47     "newtab",
48     "originattributes",
49     "pagedata",
50     "places",
51     "pocket",
52     "preferences",
53     "privatebrowsing",
54     "profiles",
55     "prompts",
56     "protections",
57     "protocolhandler",
58     "reportbrokensite",
59     "resistfingerprinting",
60     "screenshots",
61     "search",
62     "sessionstore",
63     "shell",
64     "shopping",
65     "sidebar",
66     "syncedtabs",
67     "tabpreview",
68     "tabunloader",
69     "textrecognition",
70     "translations",
71     "uitour",
72     "urlbar",
75 DIRS += ["build"]
78 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
79     DIRS += ["touchbar"]
80 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
81     DIRS += ["installerprefs"]
83 XPIDL_SOURCES += [
84     "nsIBrowserHandler.idl",
87 XPIDL_MODULE = "browsercompsbase"
89 XPCOM_MANIFESTS += [
90     "components.conf",
93 EXTRA_COMPONENTS += [
94     "BrowserComponents.manifest",
97 EXTRA_JS_MODULES += [
98     "BrowserContentHandler.sys.mjs",
99     "BrowserGlue.sys.mjs",
100     "distribution.sys.mjs",
103 if CONFIG["MOZ_DEBUG"] or CONFIG["MOZ_DEV_EDITION"] or CONFIG["NIGHTLY_BUILD"]:
104     EXTRA_JS_MODULES += [
105         "StartupRecorder.sys.mjs",
106     ]
108 BROWSER_CHROME_MANIFESTS += [
109     "safebrowsing/content/test/browser.toml",
110     "tests/browser/browser.toml",
113 if CONFIG["MOZ_UPDATER"]:
114     BROWSER_CHROME_MANIFESTS += [
115         "tests/browser/whats_new_page/browser.toml",
116     ]
118 MARIONETTE_MANIFESTS += ["tests/marionette/manifest.toml"]
120 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]