1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 include('../components/telemetry/telemetry-constants.mozbuild')
10 BUG_COMPONENT = ('Toolkit', 'General')
12 with Files('docs/**'):
13 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
15 with Files('subprocess/**'):
16 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
18 with Files('tests/browser/*AsyncPrefs*'):
19 BUG_COMPONENT = ('Core', 'Security: Process Sandboxing')
21 with Files('tests/browser/*Finder*'):
22 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
24 with Files('tests/xpcshell/test_Color.js'):
25 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
27 with Files('tests/xpcshell/test_DeferredTask.js'):
28 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
30 with Files('tests/xpcshell/test_FinderIterator.js'):
31 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
33 with Files('tests/xpcshell/test_Integration.js'):
34 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
36 with Files('tests/xpcshell/test_JSONFile.js'):
37 BUG_COMPONENT = ('Toolkit', 'Form Manager')
39 with Files('tests/xpcshell/test_Match*.js'):
40 BUG_COMPONENT = ('WebExtensions', 'General')
42 with Files('tests/xpcshell/test_NewTabUtils.js'):
43 BUG_COMPONENT = ('Firefox', 'New Tab Page')
45 with Files('tests/xpcshell/test_UpdateUtils*.js'):
46 BUG_COMPONENT = ('Toolkit', 'Application Update')
48 with Files('AsyncPrefs.jsm'):
49 BUG_COMPONENT = ('Core', 'Security: Process Sandboxing')
51 with Files('AutoScrollController.jsm'):
52 BUG_COMPONENT = ('Core', 'Panning and Zooming')
54 with Files('CharsetMenu.jsm'):
55 BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
57 with Files('Color.jsm'):
58 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
60 with Files('Console.jsm'):
61 BUG_COMPONENT = ('DevTools', 'Console')
63 with Files('DateTimePicker*.jsm'):
64 BUG_COMPONENT = ('Core', 'Layout: Form Controls ')
66 with Files('DeferredTask.jsm'):
67 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
69 with Files("E10SUtils.jsm"):
70 BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
72 with Files('Finder*.jsm'):
73 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
75 with Files('FormLikeFactory.jsm'):
76 BUG_COMPONENT = ('Toolkit', 'Password Manager')
78 with Files('IndexedDB.jsm'):
79 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
81 with Files('InlineSpellChecker*.jsm'):
82 BUG_COMPONENT = ('Core', 'Spell Checker')
84 with Files('Integration.jsm'):
85 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
87 with Files('JSONFile.jsm'):
88 BUG_COMPONENT = ('Toolkit', 'Form Manager')
90 with Files('LightweightThemeConsumer.jsm'):
91 BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
93 with Files('NLP.jsm'):
94 BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
96 with Files('NewTabUtils.jsm'):
97 BUG_COMPONENT = ('Firefox', 'Tabbed Browser')
99 with Files('ObjectUtils.jsm'):
100 BUG_COMPONENT = ('Toolkit', 'Telemetry')
102 with Files("offlineAppCache.jsm"):
103 BUG_COMPONENT = ("Toolkit", "Preferences")
105 with Files('PageMenu.jsm'):
106 BUG_COMPONENT = ('Firefox', 'Menus')
108 with Files('PermissionsUtils.jsm'):
109 BUG_COMPONENT = ('Toolkit', 'Add-ons Manager')
111 with Files('PopupNotifications.jsm'):
112 BUG_COMPONENT = ('Toolkit', 'Password Manager')
114 with Files('PrivateBrowsingUtils.jsm'):
115 BUG_COMPONENT = ('Firefox', 'Private Browsing')
117 with Files('Promise*.jsm'):
118 BUG_COMPONENT = ('Toolkit', 'Async Tooling')
120 with Files('RemoteController.js'):
121 BUG_COMPONENT = ('Core', 'Widget')
123 with Files('RemoteSecurityUI.jsm'):
124 BUG_COMPONENT = ('Firefox', 'Tabbed Browser')
126 with Files('RemoteWebProgress.jsm'):
127 BUG_COMPONENT = ('Core', 'Document Navigation')
129 with Files('ResponsivenessMonitor.jsm'):
130 BUG_COMPONENT = ('Firefox', 'Migration')
132 with Files('ShortcutUtils.jsm'):
133 BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
135 with Files('Sqlite.jsm'):
136 BUG_COMPONENT = ('Toolkit', 'Storage')
138 with Files('UpdateUtils.jsm'):
139 BUG_COMPONENT = ('Toolkit', 'Application Update')
141 with Files('WindowsRegistry.jsm'):
142 BUG_COMPONENT = ('Toolkit', 'General')
145 XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']
146 BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']
147 MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
149 TESTING_JS_MODULES += [
150 'tests/modules/MockDocument.jsm',
151 'tests/modules/PromiseTestUtils.jsm',
152 'tests/modules/Task.jsm',
153 'tests/xpcshell/TestIntegration.jsm',
156 SPHINX_TREES['toolkit_modules'] = 'docs'
158 with Files('docs/**'):
159 SCHEDULES.exclusive = ['docs']
161 EXTRA_JS_MODULES += [
162 'AboutPagesUtils.jsm',
164 'ActorManagerChild.jsm',
165 'ActorManagerParent.jsm',
166 'AppMenuNotifications.jsm',
168 'AutoCompletePopupContent.jsm',
169 'AutoScrollController.jsm',
177 'ContentDOMReference.jsm',
180 'DateTimePickerPanel.jsm',
186 'FindBarContent.jsm',
188 'FinderHighlighter.jsm',
189 'FinderIterator.jsm',
192 'FormLikeFactory.jsm',
194 'GMPExtractorWorker.js',
195 'GMPInstallManager.jsm',
201 'InlineSpellChecker.jsm',
202 'InlineSpellCheckerContent.jsm',
209 'offlineAppCache.jsm',
211 'PermissionsUtils.jsm',
212 'PopupNotifications.jsm',
214 'PrivateBrowsingUtils.jsm',
216 'Promise-backend.js',
218 'PromiseMessage.jsm',
220 'RemoteController.js',
221 'RemoteSecurityUI.jsm',
222 'RemoteWebProgress.jsm',
224 'ResponsivenessMonitor.jsm',
225 'ServiceRequest.jsm',
235 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
236 EXTRA_JS_MODULES += [
237 'PropertyListUtils.jsm',
240 EXTRA_JS_MODULES.third_party.jsesc += ['third_party/jsesc/jsesc.js']
241 EXTRA_JS_MODULES.sessionstore += [
242 'sessionstore/PrivacyFilter.jsm',
243 'sessionstore/PrivacyLevel.jsm',
244 'sessionstore/SessionHistory.jsm',
245 'sessionstore/Utils.jsm',
248 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk'):
249 DEFINES['MENUBAR_CAN_AUTOHIDE'] = 1
251 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk', 'cocoa'):
252 DEFINES['HAVE_SHELL_SERVICE'] = 1
254 EXTRA_PP_JS_MODULES += [
258 if 'Android' != CONFIG['OS_TARGET']:
259 EXTRA_JS_MODULES += [
260 'LightweightThemeConsumer.jsm',
267 DEFINES['ANDROID'] = True
268 EXTRA_JS_MODULES += [
269 'secondscreen/RokuApp.jsm',
270 'secondscreen/SimpleServiceDiscovery.jsm',
274 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
275 EXTRA_JS_MODULES += [
276 'WindowsRegistry.jsm',
279 for var in ('ANDROID_PACKAGE_NAME',
282 'MOZ_APP_VERSION_DISPLAY',
283 'MOZ_BING_API_CLIENTID',
285 'MOZ_GOOGLE_LOCATION_SERVICE_API_KEY',
286 'MOZ_GOOGLE_SAFEBROWSING_API_KEY',
287 'MOZ_MACBUNDLE_NAME',
288 'MOZ_MOZILLA_API_KEY',
289 'MOZ_WIDGET_TOOLKIT',
294 DEFINES[var] = CONFIG[var]
296 for var in ('MOZ_SYSTEM_NSS',
297 'MOZ_UNSIGNED_APP_SCOPE',
298 'MOZ_UNSIGNED_SYSTEM_SCOPE',
303 JAR_MANIFESTS += ['jar.mn']
305 DEFINES['TOPOBJDIR'] = TOPOBJDIR