moz.build 2.24 KB
Newer Older
1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
3
4
5
6
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

7
8
9
10
11
12
with Files("**"):
    BUG_COMPONENT = ("Firefox", "General")

with Files("distribution.js"):
    BUG_COMPONENT = ("Firefox", "Distributions")

13
14
15
16
with Files("tests/**"):
    BUG_COMPONENT = ("Firefox", "General")

with Files("tests/browser/browser_contentpermissionprompt.js"):
17
    BUG_COMPONENT = ("Firefox", "Site Permissions")
18
19
20
21
22
23
24

with Files("tests/unit/test_distribution.js"):
    BUG_COMPONENT = ("Firefox", "Distributions")

with Files("safebrowsing/**"):
    BUG_COMPONENT = ("Toolkit", "Safe Browsing")

25
26
with Files("controlcenter/**"):
    BUG_COMPONENT = ("Firefox", "General")
27

28

29
DIRS += [
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
    "about",
    "aboutlogins",
    "attribution",
    "contextualidentity",
    "customizableui",
    "doh",
    "downloads",
    "enterprisepolicies",
    "extensions",
    "fxmonitor",
    "migration",
    "newtab",
    "originattributes",
    "ion",
    "places",
    "pocket",
    "preferences",
    "privatebrowsing",
    "prompts",
    "protections",
    "protocolhandler",
    "resistfingerprinting",
    "search",
    "sessionstore",
    "shell",
    "syncedtabs",
    "uitour",
    "urlbar",
    "translation",
59
60
]

61
DIRS += ["build"]
62

63
if CONFIG["NIGHTLY_BUILD"]:
64
    DIRS += [
65
        "payments",
66
    ]
67

68
69
70
71
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa":
    DIRS += ["touchbar"]
elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
    DIRS += ["installerprefs"]
72

73
XPIDL_SOURCES += [
74
    "nsIBrowserHandler.idl",
75
76
]

77
XPIDL_MODULE = "browsercompsbase"
78

79
XPCOM_MANIFESTS += [
80
    "components.conf",
81
82
]

83
EXTRA_COMPONENTS += [
84
85
86
    "BrowserComponents.manifest",
    "tests/startupRecorder.js",
    "tests/testComponents.manifest",
87
88
]

89
EXTRA_JS_MODULES += [
90
91
92
    "BrowserContentHandler.jsm",
    "BrowserGlue.jsm",
    "distribution.js",
93
94
]

95
BROWSER_CHROME_MANIFESTS += [
96
97
    "safebrowsing/content/test/browser.ini",
    "tests/browser/browser.ini",
98
99
]

100
if CONFIG["MOZ_UPDATER"]:
101
    BROWSER_CHROME_MANIFESTS += [
102
        "tests/browser/whats_new_page/browser.ini",
103
104
    ]

105
XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.ini"]