moz.build 2.29 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
    "about",
    "aboutlogins",
    "attribution",
    "contextualidentity",
    "customizableui",
    "doh",
    "downloads",
    "enterprisepolicies",
    "extensions",
    "fxmonitor",
    "migration",
    "newtab",
    "originattributes",
    "ion",
    "places",
    "pocket",
    "preferences",
    "privatebrowsing",
    "prompts",
    "protections",
    "protocolhandler",
    "resistfingerprinting",
    "search",
53
    "securitylevel",
54
55
56
57
58
59
    "sessionstore",
    "shell",
    "syncedtabs",
    "uitour",
    "urlbar",
    "translation",
60
61
]

62
DIRS += ["build"]
63

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

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

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

78
XPIDL_MODULE = "browsercompsbase"
79

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

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

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

95
96
97
98
EXTRA_PP_JS_MODULES += [
    "BrowserContentHandler.jsm",
]

99
BROWSER_CHROME_MANIFESTS += [
100
101
    "safebrowsing/content/test/browser.ini",
    "tests/browser/browser.ini",
102
103
]

104
if CONFIG["MOZ_UPDATER"]:
105
    BROWSER_CHROME_MANIFESTS += [
106
        "tests/browser/whats_new_page/browser.ini",
107
108
    ]

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