2013-04-01 11:36:59 -07:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 12:47:20 -08: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 10:17:46 -07:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIAudioManager.idl',
|
2013-05-02 04:41:20 -07:00
|
|
|
'nsINetworkInterfaceListService.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsINetworkManager.idl',
|
2013-11-15 01:35:33 -08:00
|
|
|
'nsINetworkService.idl',
|
2014-01-29 03:38:50 -08:00
|
|
|
'nsINetworkWorker.idl',
|
2013-03-12 10:17:46 -07:00
|
|
|
'nsISystemWorkerManager.idl',
|
|
|
|
'nsIVolume.idl',
|
|
|
|
'nsIVolumeMountLock.idl',
|
|
|
|
'nsIVolumeService.idl',
|
|
|
|
'nsIVolumeStat.idl',
|
|
|
|
'nsIWorkerHolder.idl',
|
|
|
|
]
|
|
|
|
|
2013-03-11 22:00:00 -07:00
|
|
|
XPIDL_MODULE = 'dom_system_gonk'
|
|
|
|
|
2013-10-29 01:12:45 -07:00
|
|
|
EXPORTS += [
|
|
|
|
'GonkGPSGeolocationProvider.h',
|
|
|
|
'nsVolume.h',
|
|
|
|
'nsVolumeService.h',
|
|
|
|
]
|
2013-10-24 16:23:05 -07:00
|
|
|
SOURCES += [
|
2013-10-29 01:12:45 -07:00
|
|
|
'AudioChannelManager.cpp',
|
|
|
|
'AudioManager.cpp',
|
|
|
|
'AutoMounter.cpp',
|
|
|
|
'AutoMounterSetting.cpp',
|
|
|
|
'GonkGPSGeolocationProvider.cpp',
|
2014-07-11 14:42:15 -07:00
|
|
|
'MozMtpDatabase.cpp',
|
|
|
|
'MozMtpServer.cpp',
|
2014-08-19 13:41:35 -07:00
|
|
|
'MozMtpStorage.cpp',
|
2014-01-29 03:38:50 -08:00
|
|
|
'NetworkUtils.cpp',
|
|
|
|
'NetworkWorker.cpp',
|
2013-10-29 01:12:45 -07:00
|
|
|
'nsVolume.cpp',
|
|
|
|
'nsVolumeMountLock.cpp',
|
|
|
|
'nsVolumeService.cpp',
|
|
|
|
'nsVolumeStat.cpp',
|
|
|
|
'OpenFileFinder.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
'SystemWorkerManager.cpp',
|
2013-10-29 01:12:45 -07:00
|
|
|
'TimeZoneSettingObserver.cpp',
|
|
|
|
'Volume.cpp',
|
|
|
|
'VolumeCommand.cpp',
|
|
|
|
'VolumeManager.cpp',
|
|
|
|
'VolumeServiceIOThread.cpp',
|
|
|
|
'VolumeServiceTest.cpp',
|
2013-04-23 14:54:15 -07:00
|
|
|
]
|
2013-06-10 09:08:47 -07:00
|
|
|
|
2014-07-11 14:42:15 -07: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 01:12:45 -07:00
|
|
|
if CONFIG['ENABLE_TESTS']:
|
|
|
|
XPCSHELL_TESTS_MANIFESTS += ['tests/xpcshell.ini']
|
|
|
|
|
2013-06-11 13:38:22 -07:00
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'NetworkInterfaceListService.js',
|
|
|
|
'NetworkInterfaceListService.manifest',
|
|
|
|
'NetworkManager.manifest',
|
2014-03-19 22:01:34 -07:00
|
|
|
'NetworkService.js',
|
2013-11-15 01:35:33 -08:00
|
|
|
'NetworkService.manifest',
|
2013-06-11 13:38:22 -07:00
|
|
|
]
|
2013-10-29 01:12:45 -07:00
|
|
|
EXTRA_PP_COMPONENTS += [
|
|
|
|
'NetworkManager.js',
|
|
|
|
]
|
2013-06-10 09:08:47 -07:00
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'systemlibs.js',
|
|
|
|
]
|
|
|
|
|
2013-10-29 01:12:45 -07:00
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIRadioInterfaceLayer.idl',
|
|
|
|
]
|
|
|
|
EXTRA_COMPONENTS += [
|
|
|
|
'RadioInterfaceLayer.js',
|
|
|
|
'RadioInterfaceLayer.manifest',
|
|
|
|
'RILContentHelper.js',
|
|
|
|
]
|
|
|
|
EXTRA_JS_MODULES += [
|
|
|
|
'ril_consts.js',
|
|
|
|
'ril_worker.js',
|
|
|
|
]
|
|
|
|
|
2013-08-21 23:55:59 -07:00
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-02 10:17:55 -07:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
|
2013-11-11 00:04:11 -08:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'/dom/base',
|
|
|
|
'/dom/bluetooth',
|
|
|
|
'/dom/src/geolocation',
|
|
|
|
'/dom/wifi',
|
|
|
|
]
|
|
|
|
|
2014-07-22 16:37:51 -07:00
|
|
|
FINAL_LIBRARY = 'xul'
|