Bumping manifests a=b2g-bump
[gecko.git] / dom / nfc / moz.build
blob03c7724d8a1c58e53d7a91e28cb793d64e14f697
1 # vim: set filetype=python:
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 # Copyright © 2013 Deutsche Telekom, Inc.
8 XPIDL_MODULE = 'dom_nfc'
10 if CONFIG['MOZ_NFC']:
11     XPIDL_SOURCES += [
12         'nsINfcContentHelper.idl',
13     ]
14     EXPORTS.mozilla.dom += [
15         'MozIsoDepTech.h',
16         'MozNDEFRecord.h',
17     ]
18     UNIFIED_SOURCES += [
19         'MozIsoDepTech.cpp',
20         'MozNDEFRecord.cpp',
21     ]
22     EXTRA_COMPONENTS += [
23         'NfcContentHelper.js',
24         'NfcContentHelper.manifest',
25         'nsNfc.js',
26         'nsNfc.manifest',
27     ]
29 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_NFC']:
30     UNIFIED_SOURCES += [
31         'gonk/NfcMessageHandler.cpp',
32         'gonk/NfcService.cpp',
33     ]
34     XPIDL_SOURCES += [
35         'gonk/nsINfcService.idl',
36         'gonk/nsINfcSystemMessage.idl',
37     ]
38     EXTRA_COMPONENTS += [
39         'gonk/Nfc.js',
40         'gonk/Nfc.manifest',
41         'messages/HCIEventTransactionSystemMessage.manifest',
42         'messages/HCIEventTransactionSystemMessageConfigurator.js',
43     ]
44     EXTRA_JS_MODULES += [
45         'gonk/nfc_consts.js',
46     ]
47     XPCSHELL_TESTS_MANIFESTS += [
48         'tests/unit/xpcshell.ini'
49     ]
51 FAIL_ON_WARNINGS = True
52 include('/ipc/chromium/chromium-config.mozbuild')
54 FINAL_LIBRARY = 'xul'