2013-03-29 03:49:41 +00: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/.
|
|
|
|
|
2014-08-27 17:13:45 +00:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'Push.js',
|
|
|
|
'Push.manifest',
|
2015-12-08 20:41:41 +00:00
|
|
|
'PushComponents.js',
|
2014-08-27 17:13:45 +00:00
|
|
|
]
|
|
|
|
|
2015-06-09 06:11:00 +00:00
|
|
|
EXTRA_JS_MODULES += [
|
2015-09-17 12:08:50 +00:00
|
|
|
'PushCrypto.jsm',
|
2015-06-03 12:04:00 +00:00
|
|
|
'PushDB.jsm',
|
2015-06-25 21:52:57 +00:00
|
|
|
'PushRecord.jsm',
|
2014-08-27 17:13:45 +00:00
|
|
|
'PushService.jsm',
|
|
|
|
]
|
2015-04-11 03:19:28 +00:00
|
|
|
|
2016-03-04 23:48:09 +00: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',
|
|
|
|
]
|
|
|
|
|
2015-04-11 03:19:28 +00:00
|
|
|
MOCHITEST_MANIFESTS += [
|
|
|
|
'test/mochitest.ini',
|
|
|
|
]
|
2015-04-21 18:10:50 +00:00
|
|
|
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
|
|
'test/xpcshell/xpcshell.ini',
|
|
|
|
]
|
2015-07-23 15:30:15 +00:00
|
|
|
|
|
|
|
EXPORTS.mozilla.dom += [
|
|
|
|
'PushManager.h',
|
2016-01-14 05:19:51 +00:00
|
|
|
'PushNotifier.h',
|
2016-03-31 17:49:07 +00:00
|
|
|
'PushSubscription.h',
|
2015-07-23 15:30:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'PushManager.cpp',
|
2016-01-14 05:19:51 +00:00
|
|
|
'PushNotifier.cpp',
|
2016-03-31 17:49:07 +00:00
|
|
|
'PushSubscription.cpp',
|
2015-07-23 15:30:15 +00:00
|
|
|
]
|
|
|
|
|
2016-03-07 05:46:10 +00:00
|
|
|
TEST_DIRS += ['test/xpcshell']
|
|
|
|
|
2016-01-14 05:19:51 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2015-08-25 16:14:38 +00:00
|
|
|
if CONFIG['GNU_CXX']:
|
|
|
|
CXXFLAGS += ['-Wshadow']
|
|
|
|
|
2015-07-23 15:30:15 +00:00
|
|
|
LOCAL_INCLUDES += [
|
2016-01-14 05:19:51 +00:00
|
|
|
'../base',
|
|
|
|
'../ipc',
|
2015-07-23 15:30:15 +00:00
|
|
|
'../workers',
|
|
|
|
]
|
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|