2013-11-12 10:11:39 -08: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/.
|
|
|
|
#
|
|
|
|
# Copyright © 2013 Deutsche Telekom, Inc.
|
|
|
|
|
2014-08-01 02:23:14 -07:00
|
|
|
XPIDL_MODULE = 'dom_nfc'
|
|
|
|
|
2013-11-12 10:11:39 -08:00
|
|
|
if CONFIG['MOZ_NFC']:
|
2014-08-01 02:23:14 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsINfcContentHelper.idl',
|
|
|
|
]
|
2013-11-12 10:11:39 -08:00
|
|
|
EXPORTS.mozilla.dom += [
|
2014-01-28 16:20:17 -08:00
|
|
|
'MozNDEFRecord.h',
|
2013-11-12 10:11:39 -08:00
|
|
|
]
|
2014-09-25 07:10:42 -07:00
|
|
|
UNIFIED_SOURCES += [
|
2014-01-28 16:20:17 -08:00
|
|
|
'MozNDEFRecord.cpp',
|
2013-11-12 10:11:39 -08:00
|
|
|
]
|
|
|
|
EXTRA_COMPONENTS += [
|
2014-08-01 02:23:14 -07:00
|
|
|
'NfcContentHelper.js',
|
|
|
|
'nsNfc.js',
|
|
|
|
'nsNfc.manifest',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_NFC']:
|
2014-09-25 07:10:42 -07:00
|
|
|
UNIFIED_SOURCES += [
|
2014-08-01 02:23:14 -07:00
|
|
|
'gonk/NfcMessageHandler.cpp',
|
|
|
|
'gonk/NfcService.cpp',
|
|
|
|
]
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'gonk/nsINfcService.idl',
|
2014-12-11 02:53:27 -08:00
|
|
|
'gonk/nsINfcSystemMessage.idl',
|
2014-08-01 02:23:14 -07:00
|
|
|
]
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'gonk/Nfc.js',
|
|
|
|
'gonk/Nfc.manifest',
|
2014-08-27 05:41:00 -07:00
|
|
|
'messages/HCIEventTransactionSystemMessage.manifest',
|
|
|
|
'messages/HCIEventTransactionSystemMessageConfigurator.js',
|
2014-08-01 02:23:14 -07:00
|
|
|
]
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'gonk/nfc_consts.js',
|
2013-11-12 10:11:39 -08:00
|
|
|
]
|
2014-11-04 00:35:00 -08:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += [
|
|
|
|
'tests/unit/xpcshell.ini'
|
|
|
|
]
|
2013-11-12 10:11:39 -08:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
2014-08-01 02:23:14 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2013-11-12 10:11:39 -08:00
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|