1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/system/gonk/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,117 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# Copyright 2013 Mozilla Foundation and Mozilla contributors 1.7 +# 1.8 +# Licensed under the Apache License, Version 2.0 (the "License"); 1.9 +# you may not use this file except in compliance with the License. 1.10 +# You may obtain a copy of the License at 1.11 +# 1.12 +# http://www.apache.org/licenses/LICENSE-2.0 1.13 +# 1.14 +# Unless required by applicable law or agreed to in writing, software 1.15 +# distributed under the License is distributed on an "AS IS" BASIS, 1.16 +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1.17 +# See the License for the specific language governing permissions and 1.18 +# limitations under the License. 1.19 + 1.20 +XPIDL_SOURCES += [ 1.21 + 'nsIAudioManager.idl', 1.22 + 'nsINetworkInterfaceListService.idl', 1.23 + 'nsINetworkManager.idl', 1.24 + 'nsINetworkService.idl', 1.25 + 'nsINetworkWorker.idl', 1.26 + 'nsISystemWorkerManager.idl', 1.27 + 'nsIVolume.idl', 1.28 + 'nsIVolumeMountLock.idl', 1.29 + 'nsIVolumeService.idl', 1.30 + 'nsIVolumeStat.idl', 1.31 + 'nsIWorkerHolder.idl', 1.32 +] 1.33 + 1.34 +XPIDL_MODULE = 'dom_system_gonk' 1.35 + 1.36 +EXPORTS += [ 1.37 + 'GonkGPSGeolocationProvider.h', 1.38 + 'nsVolume.h', 1.39 + 'nsVolumeService.h', 1.40 +] 1.41 +SOURCES += [ 1.42 + 'AudioChannelManager.cpp', 1.43 + 'AudioManager.cpp', 1.44 + 'AutoMounter.cpp', 1.45 + 'AutoMounterSetting.cpp', 1.46 + 'GonkGPSGeolocationProvider.cpp', 1.47 + 'NetworkUtils.cpp', 1.48 + 'NetworkWorker.cpp', 1.49 + 'nsVolume.cpp', 1.50 + 'nsVolumeMountLock.cpp', 1.51 + 'nsVolumeService.cpp', 1.52 + 'nsVolumeStat.cpp', 1.53 + 'OpenFileFinder.cpp', 1.54 + 'SystemWorkerManager.cpp', 1.55 + 'TimeZoneSettingObserver.cpp', 1.56 + 'Volume.cpp', 1.57 + 'VolumeCommand.cpp', 1.58 + 'VolumeManager.cpp', 1.59 + 'VolumeServiceIOThread.cpp', 1.60 + 'VolumeServiceTest.cpp', 1.61 +] 1.62 + 1.63 +if CONFIG['ENABLE_TESTS']: 1.64 + XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini'] 1.65 + 1.66 +EXTRA_COMPONENTS += [ 1.67 + 'NetworkInterfaceListService.js', 1.68 + 'NetworkInterfaceListService.manifest', 1.69 + 'NetworkManager.manifest', 1.70 + 'NetworkService.js', 1.71 + 'NetworkService.manifest', 1.72 +] 1.73 +EXTRA_PP_COMPONENTS += [ 1.74 + 'NetworkManager.js', 1.75 +] 1.76 +EXTRA_JS_MODULES += [ 1.77 + 'systemlibs.js', 1.78 +] 1.79 + 1.80 +if CONFIG['MOZ_B2G_RIL']: 1.81 + XPIDL_SOURCES += [ 1.82 + 'nsIRadioInterfaceLayer.idl', 1.83 + ] 1.84 + EXTRA_COMPONENTS += [ 1.85 + 'RadioInterfaceLayer.js', 1.86 + 'RadioInterfaceLayer.manifest', 1.87 + 'RILContentHelper.js', 1.88 + ] 1.89 + EXTRA_JS_MODULES += [ 1.90 + 'ril_consts.js', 1.91 + 'ril_worker.js', 1.92 + ] 1.93 + 1.94 +if CONFIG['MOZ_NFC']: 1.95 + XPIDL_SOURCES += [ 1.96 + 'nsINfcContentHelper.idl', 1.97 + ] 1.98 + EXTRA_COMPONENTS += [ 1.99 + 'Nfc.js', 1.100 + 'Nfc.manifest', 1.101 + 'NfcContentHelper.js', 1.102 + ] 1.103 + EXTRA_JS_MODULES += [ 1.104 + 'nfc_consts.js', 1.105 + 'nfc_worker.js', 1.106 + ] 1.107 + 1.108 +FAIL_ON_WARNINGS = True 1.109 + 1.110 +include('/ipc/chromium/chromium-config.mozbuild') 1.111 + 1.112 +LOCAL_INCLUDES += [ 1.113 + '/dom/base', 1.114 + '/dom/bluetooth', 1.115 + '/dom/nfc', 1.116 + '/dom/src/geolocation', 1.117 + '/dom/wifi', 1.118 +] 1.119 + 1.120 +FINAL_LIBRARY = 'gklayout'