2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 01:19:09 +04:00
|
|
|
# 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/.
|
|
|
|
|
2017-04-09 12:43:43 +03:00
|
|
|
with Files('**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'General')
|
|
|
|
|
|
|
|
with Files('addons/**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'WebExtensions: General')
|
|
|
|
|
|
|
|
with Files('docs/**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
|
|
|
with Files('subprocess/**'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
|
|
|
with Files('tests/browser/*AsyncPrefs*'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Security: Process Sandboxing')
|
|
|
|
|
|
|
|
with Files('tests/browser/*Finder*'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_Color.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_DeferredTask.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_FinderIterator.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_Integration.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_JSONFile.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Form Manager')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_Match*.js'):
|
2017-11-16 16:56:51 +03:00
|
|
|
BUG_COMPONENT = ('Toolkit', 'WebExtensions: General')
|
2017-04-09 12:43:43 +03:00
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_NewTabUtils.js'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'New Tab Page')
|
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_UpdateUtils*.js'):
|
2017-10-06 20:55:20 +03:00
|
|
|
BUG_COMPONENT = ('Toolkit', 'Application Update')
|
2017-04-09 12:43:43 +03:00
|
|
|
|
|
|
|
with Files('tests/xpcshell/test_client_id.js'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Telemetry')
|
|
|
|
|
|
|
|
with Files('AsyncPrefs.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Security: Process Sandboxing')
|
|
|
|
|
|
|
|
with Files('CharsetMenu.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
|
|
|
|
|
|
|
|
with Files('ClientID.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Telemetry')
|
|
|
|
|
|
|
|
with Files('Color.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('Console.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Developer Tools: Console')
|
|
|
|
|
|
|
|
with Files('DateTimePickerHelper.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Layout: Form Controls ')
|
|
|
|
|
|
|
|
with Files('DeferredTask.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
2017-12-12 15:35:16 +03:00
|
|
|
with Files("E10SUtils.jsm"):
|
|
|
|
BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
|
|
|
|
|
2017-04-09 12:43:43 +03:00
|
|
|
with Files('Finder*.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('FormLikeFactory.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Password Manager')
|
|
|
|
|
|
|
|
with Files('IndexedDB.jsm'):
|
2017-11-16 16:56:51 +03:00
|
|
|
BUG_COMPONENT = ('Toolkit', 'WebExtensions: General')
|
2017-04-09 12:43:43 +03:00
|
|
|
|
|
|
|
with Files('InlineSpellChecker*.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Spell Checker')
|
|
|
|
|
|
|
|
with Files('Integration.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
|
|
|
with Files('JSONFile.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Form Manager')
|
|
|
|
|
|
|
|
with Files('LightweightThemeConsumer.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
|
|
|
|
|
|
|
|
with Files('LoadContextInfo.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Networking: Cache')
|
|
|
|
|
|
|
|
with Files('Memory.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'DOM: Content Processes')
|
|
|
|
|
|
|
|
with Files('NLP.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('NewTabUtils.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Tabbed Browser')
|
|
|
|
|
|
|
|
with Files('ObjectUtils.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Telemetry')
|
|
|
|
|
|
|
|
with Files('PageMenu.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Menus')
|
|
|
|
|
|
|
|
with Files('PermissionsUtils.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Add-ons Manager')
|
|
|
|
|
|
|
|
with Files('PopupNotifications.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Password Manager')
|
|
|
|
|
|
|
|
with Files('PrivateBrowsingUtils.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Private Browsing')
|
|
|
|
|
|
|
|
with Files('Promise*.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Async Tooling')
|
|
|
|
|
2017-09-01 06:22:34 +03:00
|
|
|
with Files('RemoteController.js'):
|
2017-04-09 12:43:43 +03:00
|
|
|
BUG_COMPONENT = ('Core', 'Widget')
|
|
|
|
|
|
|
|
with Files('RemoteFinder.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Find Toolbar')
|
|
|
|
|
|
|
|
with Files('RemoteSecurityUI.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Tabbed Browser')
|
|
|
|
|
|
|
|
with Files('RemoteWebProgress.jsm'):
|
|
|
|
BUG_COMPONENT = ('Core', 'Document Navigation')
|
|
|
|
|
|
|
|
with Files('ResponsivenessMonitor.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Migration')
|
|
|
|
|
|
|
|
with Files('ShortcutUtils.jsm'):
|
|
|
|
BUG_COMPONENT = ('Firefox', 'Toolbars and Customization')
|
|
|
|
|
|
|
|
with Files('Sqlite.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'Storage')
|
|
|
|
|
|
|
|
with Files('UpdateUtils.jsm'):
|
2017-10-06 20:55:20 +03:00
|
|
|
BUG_COMPONENT = ('Toolkit', 'Application Update')
|
2017-04-09 12:43:43 +03:00
|
|
|
|
|
|
|
with Files('WindowsRegistry.jsm'):
|
|
|
|
BUG_COMPONENT = ('Toolkit', 'General')
|
|
|
|
|
|
|
|
|
2014-02-07 01:00:20 +04:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell/xpcshell.ini']
|
|
|
|
BROWSER_CHROME_MANIFESTS += ['tests/browser/browser.ini']
|
|
|
|
MOCHITEST_CHROME_MANIFESTS += ['tests/chrome/chrome.ini']
|
2013-06-17 23:22:56 +04:00
|
|
|
|
2016-02-03 15:58:03 +03:00
|
|
|
TESTING_JS_MODULES += [
|
2017-09-12 21:56:57 +03:00
|
|
|
'HiddenFrame.jsm',
|
2017-01-31 16:17:03 +03:00
|
|
|
'tests/modules/MockDocument.jsm',
|
|
|
|
'tests/modules/PromiseTestUtils.jsm',
|
2016-04-18 16:21:01 +03:00
|
|
|
'tests/xpcshell/TestIntegration.jsm',
|
2016-02-03 15:58:03 +03:00
|
|
|
]
|
|
|
|
|
2014-05-12 21:01:00 +04:00
|
|
|
SPHINX_TREES['toolkit_modules'] = 'docs'
|
|
|
|
|
2013-06-17 23:22:56 +04:00
|
|
|
EXTRA_JS_MODULES += [
|
2017-09-29 04:27:44 +03:00
|
|
|
'addons/MatchURLFilters.jsm',
|
2015-06-04 00:53:12 +03:00
|
|
|
'addons/WebNavigation.jsm',
|
|
|
|
'addons/WebNavigationContent.js',
|
2016-02-08 20:30:48 +03:00
|
|
|
'addons/WebNavigationFrames.jsm',
|
2015-04-18 08:01:55 +03:00
|
|
|
'addons/WebRequest.jsm',
|
|
|
|
'addons/WebRequestCommon.jsm',
|
|
|
|
'addons/WebRequestContent.js',
|
2016-07-30 00:38:43 +03:00
|
|
|
'addons/WebRequestUpload.jsm',
|
2017-05-18 23:22:27 +03:00
|
|
|
'AppMenuNotifications.jsm',
|
2016-03-13 16:10:16 +03:00
|
|
|
'AsyncPrefs.jsm',
|
2014-07-01 07:50:00 +04:00
|
|
|
'Battery.jsm',
|
2014-03-29 10:31:05 +04:00
|
|
|
'BinarySearch.jsm',
|
2014-02-09 05:40:27 +04:00
|
|
|
'BrowserUtils.jsm',
|
2016-04-18 13:02:42 +03:00
|
|
|
'CanonicalJSON.jsm',
|
2015-04-07 11:09:49 +03:00
|
|
|
'CertUtils.jsm',
|
2014-01-06 12:44:19 +04:00
|
|
|
'CharsetMenu.jsm',
|
2015-04-03 08:53:00 +03:00
|
|
|
'ClientID.jsm',
|
2016-06-22 20:22:05 +03:00
|
|
|
'Color.jsm',
|
2015-10-15 13:45:22 +03:00
|
|
|
'Console.jsm',
|
2017-04-26 16:30:36 +03:00
|
|
|
'css-selector.js',
|
2016-10-06 07:17:00 +03:00
|
|
|
'DateTimePickerHelper.jsm',
|
2013-10-24 03:05:43 +04:00
|
|
|
'debug.js',
|
2013-06-17 23:22:56 +04:00
|
|
|
'DeferredTask.jsm',
|
|
|
|
'Deprecated.jsm',
|
2017-12-12 15:35:16 +03:00
|
|
|
'E10SUtils.jsm',
|
2017-04-25 19:54:35 +03:00
|
|
|
'EventEmitter.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'FileUtils.jsm',
|
2013-09-13 18:41:23 +04:00
|
|
|
'Finder.jsm',
|
2016-06-09 14:30:48 +03:00
|
|
|
'FinderHighlighter.jsm',
|
2016-07-28 13:34:13 +03:00
|
|
|
'FinderIterator.jsm',
|
2016-10-18 23:31:09 +03:00
|
|
|
'FormLikeFactory.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'Geometry.jsm',
|
2017-06-13 23:29:28 +03:00
|
|
|
'GMPExtractorWorker.js',
|
2015-04-07 11:09:49 +03:00
|
|
|
'GMPInstallManager.jsm',
|
|
|
|
'GMPUtils.jsm',
|
2013-06-20 16:38:32 +04:00
|
|
|
'Http.jsm',
|
2017-02-26 09:48:22 +03:00
|
|
|
'IndexedDB.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'InlineSpellChecker.jsm',
|
2014-10-03 18:52:37 +04:00
|
|
|
'InlineSpellCheckerContent.jsm',
|
2016-04-18 16:21:01 +03:00
|
|
|
'Integration.jsm',
|
2016-09-21 12:29:48 +03:00
|
|
|
'JSONFile.jsm',
|
2013-09-20 13:11:25 +04:00
|
|
|
'LoadContextInfo.jsm',
|
2013-08-26 22:55:58 +04:00
|
|
|
'Log.jsm',
|
2016-09-02 07:21:00 +03:00
|
|
|
'Memory.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'NewTabUtils.jsm',
|
2016-08-25 21:11:44 +03:00
|
|
|
'NLP.jsm',
|
2015-04-02 22:33:46 +03:00
|
|
|
'ObjectUtils.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'PageMenu.jsm',
|
2015-03-06 01:43:05 +03:00
|
|
|
'PageMetadata.jsm',
|
2014-09-26 09:54:34 +04:00
|
|
|
'PermissionsUtils.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'PopupNotifications.jsm',
|
|
|
|
'Preferences.jsm',
|
|
|
|
'PrivateBrowsingUtils.jsm',
|
2015-03-07 19:53:36 +03:00
|
|
|
'ProfileAge.jsm',
|
2014-03-05 22:39:19 +04:00
|
|
|
'Promise-backend.js',
|
2013-06-17 23:22:56 +04:00
|
|
|
'Promise.jsm',
|
2015-07-30 18:56:12 +03:00
|
|
|
'PromiseMessage.jsm',
|
2014-10-30 15:21:00 +03:00
|
|
|
'PromiseUtils.jsm',
|
2017-09-01 06:22:34 +03:00
|
|
|
'RemoteController.js',
|
2013-09-14 03:27:19 +04:00
|
|
|
'RemoteFinder.jsm',
|
2015-03-10 19:19:17 +03:00
|
|
|
'RemotePageManager.jsm',
|
2013-07-10 06:45:07 +04:00
|
|
|
'RemoteSecurityUI.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'RemoteWebProgress.jsm',
|
2015-04-07 11:09:49 +03:00
|
|
|
'ResetProfile.jsm',
|
2017-02-18 02:01:50 +03:00
|
|
|
'ResponsivenessMonitor.jsm',
|
2015-04-07 11:09:49 +03:00
|
|
|
'secondscreen/RokuApp.jsm',
|
2014-09-20 03:55:18 +04:00
|
|
|
'secondscreen/SimpleServiceDiscovery.jsm',
|
2013-08-26 05:34:23 +04:00
|
|
|
'SelectContentHelper.jsm',
|
|
|
|
'SelectParentHelper.jsm',
|
2016-12-23 02:56:37 +03:00
|
|
|
'ServiceRequest.jsm',
|
2015-04-14 01:37:20 +03:00
|
|
|
'Services.jsm',
|
2014-02-19 20:28:00 +04:00
|
|
|
'sessionstore/FormData.jsm',
|
|
|
|
'sessionstore/ScrollPosition.jsm',
|
2013-10-21 00:50:37 +04:00
|
|
|
'ShortcutUtils.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
'Sqlite.jsm',
|
|
|
|
'Task.jsm',
|
|
|
|
'Timer.jsm',
|
2015-04-07 11:09:49 +03:00
|
|
|
'Troubleshoot.jsm',
|
2015-09-14 21:04:19 +03:00
|
|
|
'UpdateUtils.jsm',
|
2014-08-01 09:42:00 +04:00
|
|
|
'WebChannel.jsm',
|
2015-04-07 11:09:49 +03:00
|
|
|
'WindowDraggingUtils.jsm',
|
2014-03-12 01:01:29 +04:00
|
|
|
'ZipUtils.jsm',
|
2013-06-17 23:22:56 +04:00
|
|
|
]
|
2017-05-04 18:49:42 +03:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PropertyListUtils.jsm',
|
|
|
|
]
|
|
|
|
|
2016-02-24 17:40:55 +03:00
|
|
|
EXTRA_JS_MODULES.third_party.jsesc += ['third_party/jsesc/jsesc.js']
|
2017-02-01 01:05:31 +03:00
|
|
|
EXTRA_JS_MODULES.sessionstore += [
|
|
|
|
'sessionstore/PrivacyLevel.jsm',
|
2017-02-18 22:54:09 +03:00
|
|
|
'sessionstore/SessionHistory.jsm',
|
2017-02-01 01:05:31 +03:00
|
|
|
'sessionstore/Utils.jsm',
|
|
|
|
]
|
2013-06-17 23:22:56 +04:00
|
|
|
|
2017-11-15 13:32:51 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'cocoa', 'gtk3'):
|
2016-01-23 22:55:27 +03:00
|
|
|
DEFINES['CAN_DRAW_IN_TITLEBAR'] = 1
|
|
|
|
|
2018-01-10 12:04:59 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk3'):
|
2016-01-23 22:55:27 +03:00
|
|
|
DEFINES['MENUBAR_CAN_AUTOHIDE'] = 1
|
|
|
|
|
2018-01-10 12:04:59 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('windows', 'gtk3', 'cocoa'):
|
2016-08-14 04:58:42 +03:00
|
|
|
DEFINES['HAVE_SHELL_SERVICE'] = 1
|
|
|
|
|
2013-08-02 11:03:25 +04:00
|
|
|
EXTRA_PP_JS_MODULES += [
|
2015-04-07 11:09:49 +03:00
|
|
|
'AppConstants.jsm',
|
2013-08-02 11:03:25 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if 'Android' != CONFIG['OS_TARGET']:
|
2015-04-07 11:09:49 +03:00
|
|
|
EXTRA_JS_MODULES += [
|
2013-08-02 11:03:25 +04:00
|
|
|
'LightweightThemeConsumer.jsm',
|
|
|
|
]
|
2016-05-30 03:15:47 +03:00
|
|
|
|
|
|
|
DIRS += [
|
|
|
|
'subprocess',
|
|
|
|
]
|
2014-09-12 20:42:28 +04:00
|
|
|
else:
|
|
|
|
DEFINES['ANDROID'] = True
|
2013-08-02 11:03:25 +04:00
|
|
|
|
2014-03-21 04:23:36 +04:00
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'WindowsRegistry.jsm',
|
|
|
|
]
|
|
|
|
|
2015-03-05 19:18:20 +03:00
|
|
|
for var in ('ANDROID_PACKAGE_NAME',
|
|
|
|
'MOZ_APP_NAME',
|
2015-04-07 11:09:49 +03:00
|
|
|
'MOZ_APP_VERSION',
|
2015-07-12 04:37:54 +03:00
|
|
|
'MOZ_APP_VERSION_DISPLAY',
|
2017-07-27 03:20:37 +03:00
|
|
|
'MOZ_BING_API_CLIENTID',
|
|
|
|
'MOZ_BING_API_KEY',
|
|
|
|
'MOZ_GOOGLE_API_KEY',
|
2016-01-05 02:59:44 +03:00
|
|
|
'MOZ_MACBUNDLE_NAME',
|
2017-07-27 03:20:37 +03:00
|
|
|
'MOZ_MOZILLA_API_KEY',
|
2015-05-21 19:42:07 +03:00
|
|
|
'MOZ_WIDGET_TOOLKIT',
|
|
|
|
'DLL_PREFIX',
|
2015-08-06 10:27:39 +03:00
|
|
|
'DLL_SUFFIX',
|
2016-02-10 07:38:31 +03:00
|
|
|
'DEBUG_JS_MODULES'):
|
2015-03-05 19:18:20 +03:00
|
|
|
DEFINES[var] = CONFIG[var]
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2015-10-03 01:18:04 +03:00
|
|
|
for var in ('MOZ_TOOLKIT_SEARCH',
|
2016-02-01 18:49:34 +03:00
|
|
|
'MOZ_SYSTEM_NSS',
|
2016-04-22 23:01:22 +03:00
|
|
|
'MOZ_UPDATER',
|
2017-06-15 19:21:09 +03:00
|
|
|
'MOZ_ANDROID_MOZILLA_ONLINE',
|
2017-05-02 00:43:00 +03:00
|
|
|
'MOZ_SWITCHBOARD'):
|
2015-03-05 19:18:20 +03:00
|
|
|
if CONFIG[var]:
|
|
|
|
DEFINES[var] = True
|
2016-02-10 07:38:31 +03:00
|
|
|
|
2017-07-12 10:53:59 +03:00
|
|
|
JAR_MANIFESTS += ['jar.mn']
|
|
|
|
|
2016-02-10 07:38:31 +03:00
|
|
|
DEFINES['TOPOBJDIR'] = TOPOBJDIR
|