2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; 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/.
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
# Public stuff.
|
2013-11-05 18:16:24 +04:00
|
|
|
EXPORTS.mozilla.dom += [
|
2016-03-16 21:51:11 +03:00
|
|
|
'FileReaderSync.h',
|
2014-08-19 17:56:00 +04:00
|
|
|
'ServiceWorkerCommon.h',
|
2013-11-20 03:14:07 +04:00
|
|
|
'ServiceWorkerContainer.h',
|
2014-11-06 18:57:57 +03:00
|
|
|
'ServiceWorkerEvents.h',
|
2015-09-22 11:56:48 +03:00
|
|
|
'ServiceWorkerMessageEvent.h',
|
2015-02-11 14:53:00 +03:00
|
|
|
'ServiceWorkerRegistrar.h',
|
2014-08-19 17:56:00 +04:00
|
|
|
'ServiceWorkerRegistration.h',
|
2016-03-16 21:51:11 +03:00
|
|
|
'WorkerLocation.h',
|
2016-03-19 00:15:46 +03:00
|
|
|
'WorkerNavigator.h',
|
2015-10-24 19:06:57 +03:00
|
|
|
'WorkerPrefs.h',
|
2013-11-05 18:16:24 +04:00
|
|
|
'WorkerPrivate.h',
|
2013-10-23 17:16:49 +04:00
|
|
|
'WorkerRunnable.h',
|
2013-11-05 18:16:26 +04:00
|
|
|
'WorkerScope.h',
|
2013-11-05 18:16:24 +04:00
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom.workers += [
|
2016-03-16 22:41:38 +03:00
|
|
|
'RuntimeService.h',
|
2016-04-09 03:28:25 +03:00
|
|
|
'ServiceWorkerInfo.h',
|
2013-11-20 03:15:02 +04:00
|
|
|
'ServiceWorkerManager.h',
|
2016-04-09 03:28:25 +03:00
|
|
|
'ServiceWorkerRegistrationInfo.h',
|
2014-10-27 20:00:05 +03:00
|
|
|
'WorkerDebuggerManager.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'Workers.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
# Stuff needed for the bindings, not really public though.
|
|
|
|
EXPORTS.mozilla.dom.workers.bindings += [
|
2013-11-20 03:14:07 +04:00
|
|
|
'ServiceWorker.h',
|
2014-10-27 14:03:00 +03:00
|
|
|
'ServiceWorkerClient.h',
|
|
|
|
'ServiceWorkerClients.h',
|
2015-03-06 16:04:49 +03:00
|
|
|
'ServiceWorkerWindowClient.h',
|
2013-06-05 18:04:23 +04:00
|
|
|
'SharedWorker.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
'URL.h',
|
|
|
|
'WorkerFeature.h',
|
|
|
|
'XMLHttpRequest.h',
|
|
|
|
'XMLHttpRequestUpload.h',
|
|
|
|
]
|
|
|
|
|
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 += [
|
2013-04-24 01:54:15 +04:00
|
|
|
'ChromeWorkerScope.cpp',
|
|
|
|
'FileReaderSync.cpp',
|
|
|
|
'Principal.cpp',
|
2013-11-05 18:16:26 +04:00
|
|
|
'RegisterBindings.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'RuntimeService.cpp',
|
|
|
|
'ScriptLoader.cpp',
|
2013-11-20 03:14:07 +04:00
|
|
|
'ServiceWorker.cpp',
|
2014-10-27 14:03:00 +03:00
|
|
|
'ServiceWorkerClient.cpp',
|
|
|
|
'ServiceWorkerClients.cpp',
|
2013-11-20 03:14:07 +04:00
|
|
|
'ServiceWorkerContainer.cpp',
|
2014-05-14 01:49:36 +04:00
|
|
|
'ServiceWorkerEvents.cpp',
|
2016-04-09 03:28:25 +03:00
|
|
|
'ServiceWorkerInfo.cpp',
|
2016-04-06 23:27:22 +03:00
|
|
|
'ServiceWorkerJob.cpp',
|
2016-04-06 23:27:22 +03:00
|
|
|
'ServiceWorkerJobQueue.cpp',
|
2013-11-20 03:15:02 +04:00
|
|
|
'ServiceWorkerManager.cpp',
|
2015-06-04 21:51:57 +03:00
|
|
|
'ServiceWorkerManagerChild.cpp',
|
|
|
|
'ServiceWorkerManagerParent.cpp',
|
|
|
|
'ServiceWorkerManagerService.cpp',
|
2015-09-22 11:56:48 +03:00
|
|
|
'ServiceWorkerMessageEvent.cpp',
|
2015-10-01 02:11:03 +03:00
|
|
|
'ServiceWorkerPrivate.cpp',
|
2016-04-06 23:27:22 +03:00
|
|
|
'ServiceWorkerRegisterJob.cpp',
|
2015-02-11 14:53:00 +03:00
|
|
|
'ServiceWorkerRegistrar.cpp',
|
2014-08-19 17:56:00 +04:00
|
|
|
'ServiceWorkerRegistration.cpp',
|
2016-04-09 03:28:25 +03:00
|
|
|
'ServiceWorkerRegistrationInfo.cpp',
|
2015-03-18 19:46:38 +03:00
|
|
|
'ServiceWorkerScriptCache.cpp',
|
2016-04-06 23:27:22 +03:00
|
|
|
'ServiceWorkerUnregisterJob.cpp',
|
2016-04-06 23:27:22 +03:00
|
|
|
'ServiceWorkerUpdateJob.cpp',
|
2015-03-06 16:04:49 +03:00
|
|
|
'ServiceWorkerWindowClient.cpp',
|
2013-06-05 18:04:23 +04:00
|
|
|
'SharedWorker.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'URL.cpp',
|
2014-10-27 20:00:05 +03:00
|
|
|
'WorkerDebuggerManager.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',
|
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
|
|
|
'XMLHttpRequest.cpp',
|
|
|
|
'XMLHttpRequestUpload.cpp',
|
|
|
|
]
|
|
|
|
|
2015-02-11 14:53:00 +03:00
|
|
|
IPDL_SOURCES += [
|
2015-06-04 21:51:57 +03:00
|
|
|
'PServiceWorkerManager.ipdl',
|
2015-02-11 14:53:00 +03:00
|
|
|
'ServiceWorkerRegistrarTypes.ipdlh',
|
|
|
|
]
|
|
|
|
|
2013-09-13 20:25:21 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
'../system',
|
2014-10-25 21:25:22 +04:00
|
|
|
'/dom/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
|
|
|
|
2013-12-03 23:31:30 +04: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
|
|
|
|
|
|
|
TEST_DIRS += [
|
|
|
|
'test/extensions/bootstrap',
|
|
|
|
'test/extensions/traditional',
|
|
|
|
]
|
|
|
|
|
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
'test/serviceworkers/mochitest.ini',
|
|
|
|
]
|
|
|
|
|
2015-06-11 20:42:38 +03:00
|
|
|
MOCHITEST_CHROME_MANIFESTS += [
|
|
|
|
'test/chrome.ini',
|
|
|
|
'test/serviceworkers/chrome.ini'
|
|
|
|
]
|
2014-07-26 10:17:24 +04:00
|
|
|
|
2015-06-13 04:59:01 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += [
|
|
|
|
'test/serviceworkers/browser.ini',
|
|
|
|
]
|
|
|
|
|
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']
|
|
|
|
|
2015-02-11 14:53:00 +03:00
|
|
|
TEST_DIRS += ['test/gtest']
|
2016-05-11 10:00:01 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wno-error=shadow']
|