moz.build 2.28 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
17
18
19
20
21
22
23
24
with Files("tests/**"):
    BUG_COMPONENT = ("Firefox", "General")

with Files("tests/browser/browser_contentpermissionprompt.js"):
    BUG_COMPONENT = ("Firefox", "Site Identity and Permission Panels")

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
    'aboutlogins',
32
    'attribution',
33
    'contextualidentity',
34
    'customizableui',
35
36
    'dirprovider',
    'downloads',
37
    'enterprisepolicies',
38
    'extensions',
39
    'fxmonitor',
40
    'library',
41
    'migration',
42
    'newtab',
43
    'originattributes',
44
    'places',
45
    'pocket',
46
47
    'preferences',
    'privatebrowsing',
48
    'protections',
49
    'protocolhandler',
50
    'resistfingerprinting',
51
52
53
    'search',
    'sessionstore',
    'shell',
54
    'syncedtabs',
55
    'uitour',
56
    'urlbar',
57
    'translation',
58
59
60
]

DIRS += ['build']
61

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

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

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

77
78
XPIDL_MODULE = 'browsercompsbase'

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

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

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

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

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

105
106
XPCSHELL_TESTS_MANIFESTS += [
    'tests/unit/xpcshell.ini'
107
]