Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / nfc / moz.build
blob8512343ca56974b9372455d9208ee1c63aa3a92f
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         'MozNDEFRecord.h',
16     ]
17     SOURCES += [
18         'MozNDEFRecord.cpp',
19     ]
20     EXTRA_COMPONENTS += [
21         'NfcContentHelper.js',
22         'nsNfc.js',
23         'nsNfc.manifest',
24     ]
26 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk' and CONFIG['MOZ_NFC']:
27     SOURCES += [
28         'gonk/NfcMessageHandler.cpp',
29         'gonk/NfcService.cpp',
30     ]
31     XPIDL_SOURCES += [
32         'gonk/nsINfcService.idl',
33     ]
34     EXTRA_COMPONENTS += [
35         'gonk/Nfc.js',
36         'gonk/Nfc.manifest',
37         'messages/HCIEventTransactionSystemMessage.manifest',
38         'messages/HCIEventTransactionSystemMessageConfigurator.js',
39     ]
40     EXTRA_JS_MODULES += [
41         'gonk/nfc_consts.js',
42     ]
44 FAIL_ON_WARNINGS = True
45 include('/ipc/chromium/chromium-config.mozbuild')
47 FINAL_LIBRARY = 'xul'