2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:20 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# Copyright 2013 Mozilla Foundation and Mozilla contributors
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2013-03-12 21:17:46 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAudioManager.idl',
|
2013-05-02 15:41:20 +04:00
|
|
|
'nsINetworkInterfaceListService.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsINetworkManager.idl',
|
2013-11-15 13:35:33 +04:00
|
|
|
'nsINetworkService.idl',
|
2014-01-29 15:38:50 +04:00
|
|
|
'nsINetworkWorker.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsISystemWorkerManager.idl',
|
2015-03-05 11:41:00 +03:00
|
|
|
'nsITetheringService.idl',
|
2013-03-12 21:17:46 +04:00
|
|
|
'nsIVolume.idl',
|
|
|
|
'nsIVolumeMountLock.idl',
|
|
|
|
'nsIVolumeService.idl',
|
|
|
|
'nsIVolumeStat.idl',
|
|
|
|
'nsIWorkerHolder.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'dom_system_gonk'
|
|
|
|
|
2013-10-29 12:12:45 +04:00
|
|
|
EXPORTS += [
|
|
|
|
'GonkGPSGeolocationProvider.h',
|
|
|
|
'nsVolume.h',
|
|
|
|
'nsVolumeService.h',
|
|
|
|
]
|
2014-09-25 18:10:42 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2013-10-29 12:12:45 +04:00
|
|
|
'AudioChannelManager.cpp',
|
|
|
|
'AudioManager.cpp',
|
|
|
|
'AutoMounter.cpp',
|
|
|
|
'AutoMounterSetting.cpp',
|
|
|
|
'GonkGPSGeolocationProvider.cpp',
|
2014-07-12 01:42:15 +04:00
|
|
|
'MozMtpDatabase.cpp',
|
|
|
|
'MozMtpServer.cpp',
|
2014-08-20 00:41:35 +04:00
|
|
|
'MozMtpStorage.cpp',
|
2015-01-09 09:45:53 +03:00
|
|
|
'NetIdManager.cpp',
|
2014-01-29 15:38:50 +04:00
|
|
|
'NetworkUtils.cpp',
|
|
|
|
'NetworkWorker.cpp',
|
2013-10-29 12:12:45 +04:00
|
|
|
'nsVolume.cpp',
|
|
|
|
'nsVolumeMountLock.cpp',
|
|
|
|
'nsVolumeService.cpp',
|
|
|
|
'nsVolumeStat.cpp',
|
|
|
|
'OpenFileFinder.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'SystemWorkerManager.cpp',
|
2013-10-29 12:12:45 +04:00
|
|
|
'TimeZoneSettingObserver.cpp',
|
|
|
|
'Volume.cpp',
|
|
|
|
'VolumeCommand.cpp',
|
|
|
|
'VolumeManager.cpp',
|
|
|
|
'VolumeServiceIOThread.cpp',
|
|
|
|
'VolumeServiceTest.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
2013-06-10 20:08:47 +04:00
|
|
|
|
2014-07-12 01:42:15 +04:00
|
|
|
if CONFIG['ANDROID_VERSION'] >= '17':
|
|
|
|
CXXFLAGS += ['-I%s/frameworks/av/media/mtp' % CONFIG['ANDROID_SOURCE']]
|
|
|
|
else:
|
|
|
|
CXXFLAGS += ['-I%s/frameworks/base/media/mtp' % CONFIG['ANDROID_SOURCE']]
|
|
|
|
|
2013-10-29 12:12:45 +04:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|
|
|
|
|
2013-06-12 00:38:22 +04:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'NetworkInterfaceListService.js',
|
|
|
|
'NetworkInterfaceListService.manifest',
|
2015-03-09 13:20:52 +03:00
|
|
|
'NetworkManager.js',
|
2013-06-12 00:38:22 +04:00
|
|
|
'NetworkManager.manifest',
|
2014-03-20 09:01:34 +04:00
|
|
|
'NetworkService.js',
|
2013-11-15 13:35:33 +04:00
|
|
|
'NetworkService.manifest',
|
2015-03-05 11:41:00 +03:00
|
|
|
'TetheringService.js',
|
|
|
|
'TetheringService.manifest',
|
2013-06-12 00:38:22 +04:00
|
|
|
]
|
2013-06-10 20:08:47 +04:00
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'systemlibs.js',
|
|
|
|
]
|
|
|
|
|
2013-10-29 12:12:45 +04:00
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
XPIDL_SOURCES += [
|
2015-05-20 05:08:35 +03:00
|
|
|
'nsIDataCallInterfaceService.idl',
|
|
|
|
'nsIDataCallManager.idl',
|
|
|
|
'nsIGonkDataCallInterfaceService.idl',
|
2013-10-29 12:12:45 +04:00
|
|
|
'nsIRadioInterfaceLayer.idl',
|
|
|
|
]
|
|
|
|
EXTRA_COMPONENTS += [
|
2015-02-13 10:05:37 +03:00
|
|
|
'RILContentHelper.js', # TODO: Bug 815526, deprecate RILContentHelper.
|
|
|
|
'RILContentHelper.manifest', # TODO: Bug 815526, deprecate RILContentHelper.
|
2014-10-20 12:50:57 +04:00
|
|
|
'RILSystemMessengerHelper.js',
|
|
|
|
'RILSystemMessengerHelper.manifest',
|
2013-10-29 12:12:45 +04:00
|
|
|
]
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'ril_consts.js',
|
|
|
|
'ril_worker.js',
|
2015-02-04 13:09:18 +03:00
|
|
|
'ril_worker_buf_object.js',
|
2015-04-02 13:16:09 +03:00
|
|
|
'ril_worker_telephony_request_queue.js',
|
2014-10-20 12:50:57 +04:00
|
|
|
'RILSystemMessenger.jsm',
|
2013-10-29 12:12:45 +04:00
|
|
|
]
|
2015-02-27 00:51:20 +03:00
|
|
|
if not CONFIG['DISABLE_MOZ_RIL_GEOLOC']:
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'RadioInterfaceLayer.js',
|
|
|
|
'RadioInterfaceLayer.manifest',
|
|
|
|
]
|
2013-10-29 12:12:45 +04:00
|
|
|
|
2013-08-22 10:55:59 +04:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-02 21:17:55 +04:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-11 12:04:11 +04:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/bluetooth',
|
2014-08-31 08:43:45 +04:00
|
|
|
'/dom/geolocation',
|
2013-11-11 12:04:11 +04:00
|
|
|
'/dom/wifi',
|
|
|
|
]
|
|
|
|
|
2015-04-09 16:57:40 +03:00
|
|
|
if CONFIG['MOZ_B2G_BT_API_V2']:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/bluetooth/bluetooth2',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/bluetooth/bluetooth1',
|
|
|
|
]
|
|
|
|
|
2014-07-23 03:37:51 +04:00
|
|
|
FINAL_LIBRARY = 'xul'
|