michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # Copyright 2013 Mozilla Foundation and Mozilla contributors michael@0: # michael@0: # Licensed under the Apache License, Version 2.0 (the "License"); michael@0: # you may not use this file except in compliance with the License. michael@0: # You may obtain a copy of the License at michael@0: # michael@0: # http://www.apache.org/licenses/LICENSE-2.0 michael@0: # michael@0: # Unless required by applicable law or agreed to in writing, software michael@0: # distributed under the License is distributed on an "AS IS" BASIS, michael@0: # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. michael@0: # See the License for the specific language governing permissions and michael@0: # limitations under the License. michael@0: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIAudioManager.idl', michael@0: 'nsINetworkInterfaceListService.idl', michael@0: 'nsINetworkManager.idl', michael@0: 'nsINetworkService.idl', michael@0: 'nsINetworkWorker.idl', michael@0: 'nsISystemWorkerManager.idl', michael@0: 'nsIVolume.idl', michael@0: 'nsIVolumeMountLock.idl', michael@0: 'nsIVolumeService.idl', michael@0: 'nsIVolumeStat.idl', michael@0: 'nsIWorkerHolder.idl', michael@0: ] michael@0: michael@0: XPIDL_MODULE = 'dom_system_gonk' michael@0: michael@0: EXPORTS += [ michael@0: 'GonkGPSGeolocationProvider.h', michael@0: 'nsVolume.h', michael@0: 'nsVolumeService.h', michael@0: ] michael@0: SOURCES += [ michael@0: 'AudioChannelManager.cpp', michael@0: 'AudioManager.cpp', michael@0: 'AutoMounter.cpp', michael@0: 'AutoMounterSetting.cpp', michael@0: 'GonkGPSGeolocationProvider.cpp', michael@0: 'NetworkUtils.cpp', michael@0: 'NetworkWorker.cpp', michael@0: 'nsVolume.cpp', michael@0: 'nsVolumeMountLock.cpp', michael@0: 'nsVolumeService.cpp', michael@0: 'nsVolumeStat.cpp', michael@0: 'OpenFileFinder.cpp', michael@0: 'SystemWorkerManager.cpp', michael@0: 'TimeZoneSettingObserver.cpp', michael@0: 'Volume.cpp', michael@0: 'VolumeCommand.cpp', michael@0: 'VolumeManager.cpp', michael@0: 'VolumeServiceIOThread.cpp', michael@0: 'VolumeServiceTest.cpp', michael@0: ] michael@0: michael@0: if CONFIG['ENABLE_TESTS']: michael@0: XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini'] michael@0: michael@0: EXTRA_COMPONENTS += [ michael@0: 'NetworkInterfaceListService.js', michael@0: 'NetworkInterfaceListService.manifest', michael@0: 'NetworkManager.manifest', michael@0: 'NetworkService.js', michael@0: 'NetworkService.manifest', michael@0: ] michael@0: EXTRA_PP_COMPONENTS += [ michael@0: 'NetworkManager.js', michael@0: ] michael@0: EXTRA_JS_MODULES += [ michael@0: 'systemlibs.js', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_RIL']: michael@0: XPIDL_SOURCES += [ michael@0: 'nsIRadioInterfaceLayer.idl', michael@0: ] michael@0: EXTRA_COMPONENTS += [ michael@0: 'RadioInterfaceLayer.js', michael@0: 'RadioInterfaceLayer.manifest', michael@0: 'RILContentHelper.js', michael@0: ] michael@0: EXTRA_JS_MODULES += [ michael@0: 'ril_consts.js', michael@0: 'ril_worker.js', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_NFC']: michael@0: XPIDL_SOURCES += [ michael@0: 'nsINfcContentHelper.idl', michael@0: ] michael@0: EXTRA_COMPONENTS += [ michael@0: 'Nfc.js', michael@0: 'Nfc.manifest', michael@0: 'NfcContentHelper.js', michael@0: ] michael@0: EXTRA_JS_MODULES += [ michael@0: 'nfc_consts.js', michael@0: 'nfc_worker.js', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild') michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '/dom/base', michael@0: '/dom/bluetooth', michael@0: '/dom/nfc', michael@0: '/dom/src/geolocation', michael@0: '/dom/wifi', michael@0: ] michael@0: michael@0: FINAL_LIBRARY = 'gklayout'