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:20:41 +04:00
|
|
|
if CONFIG['MOZ_B2G_BT']:
|
2013-03-19 22:47:00 +04:00
|
|
|
MODULE = 'dom'
|
2013-03-12 09:00:00 +04:00
|
|
|
XPIDL_MODULE = 'dom_bluetooth'
|
2013-03-12 21:20:41 +04:00
|
|
|
XPIDL_SOURCES += [
|
|
|
|
'nsIDOMBluetoothAdapter.idl',
|
2013-05-16 20:53:27 +04:00
|
|
|
'nsIDOMBluetoothDevice.idl',
|
2013-05-17 02:37:18 +04:00
|
|
|
'nsIDOMBluetoothDeviceEvent.idl',
|
|
|
|
'nsIDOMBluetoothManager.idl',
|
2013-03-12 21:20:41 +04:00
|
|
|
]
|
|
|
|
|
2013-04-24 01:54:15 +04:00
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothService.cpp',
|
|
|
|
'BluetoothManager.cpp',
|
|
|
|
'BluetoothAdapter.cpp',
|
|
|
|
'BluetoothDevice.cpp',
|
|
|
|
'BluetoothReplyRunnable.cpp',
|
|
|
|
'BluetoothPropertyContainer.cpp',
|
|
|
|
'BluetoothUtils.cpp',
|
|
|
|
'BluetoothChild.cpp',
|
|
|
|
'BluetoothParent.cpp',
|
|
|
|
'BluetoothServiceChildProcess.cpp',
|
|
|
|
'BluetoothUnixSocketConnector.cpp',
|
2013-06-08 19:24:29 +04:00
|
|
|
'BluetoothA2dpManager.cpp',
|
2013-04-24 01:54:15 +04:00
|
|
|
'BluetoothHfpManager.cpp',
|
|
|
|
'BluetoothOppManager.cpp',
|
|
|
|
'ObexBase.cpp',
|
|
|
|
'BluetoothUuid.cpp',
|
|
|
|
'BluetoothSocket.cpp',
|
2013-07-29 13:32:35 +04:00
|
|
|
'MediaMetaData.cpp',
|
|
|
|
'MediaPlayStatus.cpp'
|
2013-04-24 01:54:15 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothTelephonyListener.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothDBusService.cpp',
|
|
|
|
'BluetoothGonkService.cpp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
if CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
CPP_SOURCES += [
|
|
|
|
'BluetoothDBusService.cpp',
|
|
|
|
]
|
|
|
|
|
2013-04-16 23:24:43 +04:00
|
|
|
EXPORTS.mozilla.dom.bluetooth.ipc += [
|
2013-06-26 22:51:06 +04:00
|
|
|
'ipc/BluetoothMessageUtils.h',
|
2013-04-16 23:24:43 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.bluetooth += [
|
|
|
|
'BluetoothCommon.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 17:56:28 +04:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'ipc/BluetoothTypes.ipdlh',
|
|
|
|
'ipc/PBluetooth.ipdl',
|
|
|
|
'ipc/PBluetoothRequest.ipdl',
|
|
|
|
]
|