moz.build 2.3 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
27
with Files('controlcenter/**'):
    BUG_COMPONENT = ('Firefox', 'General')

28

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

DIRS += ['build']
65

66
if CONFIG['NIGHTLY_BUILD']:
67
68
69
    DIRS += [
        'payments',
    ]
70

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

76
77
78
79
XPIDL_SOURCES += [
    'nsIBrowserHandler.idl',
]

80
81
XPIDL_MODULE = 'browsercompsbase'

82
83
84
85
XPCOM_MANIFESTS += [
    'components.conf',
]

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

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

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

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

108
109
XPCSHELL_TESTS_MANIFESTS += [
    'tests/unit/xpcshell.ini'
110
]