2013-03-29 07:49:41 +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: Push Notifications")
|
|
|
|
|
2014-08-27 21:13:45 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'Push.manifest',
|
|
|
|
]
|
|
|
|
|
2015-06-09 09:11:00 +03:00
|
|
|
EXTRA_JS_MODULES += [
|
2019-01-30 07:50:16 +03:00
|
|
|
'Push.jsm',
|
2018-04-11 17:53:20 +03:00
|
|
|
'PushBroadcastService.jsm',
|
2019-01-30 07:50:16 +03:00
|
|
|
'PushComponents.jsm',
|
2015-09-17 15:08:50 +03:00
|
|
|
'PushCrypto.jsm',
|
2015-06-03 15:04:00 +03:00
|
|
|
'PushDB.jsm',
|
2015-06-26 00:52:57 +03:00
|
|
|
'PushRecord.jsm',
|
2014-08-27 21:13:45 +04:00
|
|
|
'PushService.jsm',
|
|
|
|
]
|
2015-04-11 06:19:28 +03:00
|
|
|
|
2016-03-05 02:48:09 +03:00
|
|
|
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
|
|
|
# Everything but Fennec.
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PushServiceHttp2.jsm',
|
|
|
|
'PushServiceWebSocket.jsm',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
# Fennec only.
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'PushServiceAndroidGCM.jsm',
|
|
|
|
]
|
|
|
|
|
2019-01-30 07:50:16 +03:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
'components.conf',
|
|
|
|
]
|
|
|
|
|
2015-04-11 06:19:28 +03:00
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
]
|
2015-04-21 21:10:50 +03:00
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
|
|
'test/xpcshell/xpcshell.ini',
|
|
|
|
]
|
2015-07-23 18:30:15 +03:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'PushManager.h',
|
2016-01-14 08:19:51 +03:00
|
|
|
'PushNotifier.h',
|
2016-03-31 20:49:07 +03:00
|
|
|
'PushSubscription.h',
|
2016-03-22 23:38:03 +03:00
|
|
|
'PushSubscriptionOptions.h',
|
|
|
|
'PushUtil.h',
|
2015-07-23 18:30:15 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'PushManager.cpp',
|
2016-01-14 08:19:51 +03:00
|
|
|
'PushNotifier.cpp',
|
2016-03-31 20:49:07 +03:00
|
|
|
'PushSubscription.cpp',
|
2016-03-22 23:38:03 +03:00
|
|
|
'PushSubscriptionOptions.cpp',
|
|
|
|
'PushUtil.cpp',
|
2015-07-23 18:30:15 +03:00
|
|
|
]
|
|
|
|
|
2016-03-07 08:46:10 +03:00
|
|
|
TEST_DIRS += ['test/xpcshell']
|
|
|
|
|
2016-01-14 08:19:51 +03:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2015-07-23 18:30:15 +03:00
|
|
|
LOCAL_INCLUDES += [
|
2016-01-14 08:19:51 +03:00
|
|
|
'../base',
|
|
|
|
'../ipc',
|
2015-07-23 18:30:15 +03:00
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|