2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +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-03-01 16:20:25 +03:00
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Core", "DOM: Workers")
|
|
|
|
|
2018-11-20 02:18:32 +03:00
|
|
|
DIRS += ['remoteworkers', 'sharedworkers']
|
2018-11-20 02:18:20 +03:00
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
# Public stuff.
|
2013-11-05 18:16:24 +04:00
|
|
|
EXPORTS.mozilla.dom += [
|
2018-02-08 10:26:05 +03:00
|
|
|
'ChromeWorker.h',
|
2020-03-26 03:36:24 +03:00
|
|
|
'JSExecutionManager.h',
|
2018-02-08 10:26:05 +03:00
|
|
|
'Worker.h',
|
2018-01-31 10:24:59 +03:00
|
|
|
'WorkerCommon.h',
|
2018-01-31 10:21:06 +03:00
|
|
|
'WorkerDebugger.h',
|
|
|
|
'WorkerDebuggerManager.h',
|
2018-11-20 02:18:21 +03:00
|
|
|
'WorkerError.h',
|
2018-01-31 10:20:25 +03:00
|
|
|
'WorkerLoadInfo.h',
|
2016-03-16 21:51:11 +03:00
|
|
|
'WorkerLocation.h',
|
2016-03-19 00:15:46 +03:00
|
|
|
'WorkerNavigator.h',
|
2013-11-05 18:16:24 +04:00
|
|
|
'WorkerPrivate.h',
|
2018-03-13 23:16:48 +03:00
|
|
|
'WorkerRef.h',
|
2013-10-23 17:16:49 +04:00
|
|
|
'WorkerRunnable.h',
|
2013-11-05 18:16:26 +04:00
|
|
|
'WorkerScope.h',
|
2019-07-12 14:18:17 +03:00
|
|
|
'WorkerStatus.h',
|
2013-11-05 18:16:24 +04:00
|
|
|
]
|
|
|
|
|
2018-01-31 10:24:59 +03:00
|
|
|
# Private stuff.
|
|
|
|
EXPORTS.mozilla.dom.workerinternals += [
|
|
|
|
'JSSettings.h',
|
2018-01-31 10:24:08 +03:00
|
|
|
'Queue.h',
|
2016-03-16 22:41:38 +03:00
|
|
|
'RuntimeService.h',
|
2018-11-20 02:18:21 +03:00
|
|
|
'ScriptLoader.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
2014-10-27 20:00:05 +03:00
|
|
|
XPIDL_MODULE = 'dom_workers'
|
|
|
|
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIWorkerDebugger.idl',
|
|
|
|
'nsIWorkerDebuggerManager.idl',
|
|
|
|
]
|
|
|
|
|
2014-09-25 18:12:06 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2018-02-08 10:26:05 +03:00
|
|
|
'ChromeWorker.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'ChromeWorkerScope.cpp',
|
2020-03-26 03:36:24 +03:00
|
|
|
'JSExecutionManager.cpp',
|
2018-01-30 12:10:25 +03:00
|
|
|
'MessageEventRunnable.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'Principal.cpp',
|
2013-11-05 18:16:26 +04:00
|
|
|
'RegisterBindings.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'RuntimeService.cpp',
|
|
|
|
'ScriptLoader.cpp',
|
2018-02-08 10:26:05 +03:00
|
|
|
'Worker.cpp',
|
2018-07-10 19:53:03 +03:00
|
|
|
'WorkerCSPEventListener.cpp',
|
2018-01-30 12:12:26 +03:00
|
|
|
'WorkerDebugger.cpp',
|
2014-10-27 20:00:05 +03:00
|
|
|
'WorkerDebuggerManager.cpp',
|
2018-01-30 12:12:50 +03:00
|
|
|
'WorkerError.cpp',
|
2018-01-31 10:20:25 +03:00
|
|
|
'WorkerEventTarget.cpp',
|
2018-01-30 12:12:04 +03:00
|
|
|
'WorkerLoadInfo.cpp',
|
2016-03-16 21:51:11 +03:00
|
|
|
'WorkerLocation.cpp',
|
2016-03-19 00:15:46 +03:00
|
|
|
'WorkerNavigator.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'WorkerPrivate.cpp',
|
2018-03-13 23:16:48 +03:00
|
|
|
'WorkerRef.cpp',
|
2013-10-23 17:16:49 +04:00
|
|
|
'WorkerRunnable.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'WorkerScope.cpp',
|
2014-11-15 05:47:30 +03:00
|
|
|
'WorkerThread.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
2013-09-13 20:25:21 +04:00
|
|
|
LOCAL_INCLUDES += [
|
2018-05-03 18:42:58 +03:00
|
|
|
'/caps',
|
2014-10-25 21:25:22 +04:00
|
|
|
'/dom/base',
|
2017-02-15 17:53:07 +03:00
|
|
|
'/dom/bindings',
|
2018-05-03 18:42:58 +03:00
|
|
|
'/dom/system',
|
2019-08-15 20:27:28 +03:00
|
|
|
'/dom/workers/remoteworkers',
|
2017-11-05 03:20:17 +03:00
|
|
|
'/js/xpconnect/loader',
|
2018-05-03 18:42:58 +03:00
|
|
|
'/netwerk/base',
|
2013-09-13 20:25:21 +04:00
|
|
|
'/xpcom/build',
|
2013-10-23 17:16:49 +04:00
|
|
|
'/xpcom/threads',
|
2013-11-05 18:16:26 +04:00
|
|
|
]
|
2013-11-19 06:47:14 +04:00
|
|
|
|
2019-05-08 01:16:28 +03:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/xpcom/base',
|
|
|
|
]
|
|
|
|
|
|
|
|
|
2018-01-27 00:08:58 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|
2014-07-26 10:17:24 +04:00
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
]
|
|
|
|
|
2015-06-11 20:42:38 +03:00
|
|
|
MOCHITEST_CHROME_MANIFESTS += [
|
|
|
|
'test/chrome.ini',
|
2015-06-13 04:59:01 +03:00
|
|
|
]
|
|
|
|
|
2014-07-26 10:17:24 +04:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['test/xpcshell/xpcshell.ini']
|
2015-02-11 14:53:00 +03:00
|
|
|
|
2014-12-10 22:41:09 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
|
|
|
|
|
2017-12-08 00:09:15 +03:00
|
|
|
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
|
2016-05-11 10:00:01 +03:00
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|