moz.build 2.27 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
59
60
    "about",
    "aboutconfig",
    "aboutlogins",
    "attribution",
    "contextualidentity",
    "customizableui",
    "doh",
    "downloads",
    "enterprisepolicies",
    "extensions",
    "fxmonitor",
    "migration",
    "newtab",
    "originattributes",
    "ion",
    "places",
    "pocket",
    "preferences",
    "privatebrowsing",
    "prompts",
    "protections",
    "protocolhandler",
    "resistfingerprinting",
    "search",
    "sessionstore",
    "shell",
    "ssb",
    "syncedtabs",
    "uitour",
    "urlbar",
    "translation",
61
62
]

63
DIRS += ["build"]
64

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

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

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

79
XPIDL_MODULE = "browsercompsbase"
80

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

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

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

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

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

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