2013-04-01 18:36:59 +00:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-25 20:47:20 +00:00
|
|
|
# vim: set filetype=python:
|
2013-11-18 06:29:45 +00:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2013-02-25 20:47:20 +00:00
|
|
|
|
2013-03-12 17:20:41 +00:00
|
|
|
if CONFIG['MOZ_B2G_BT']:
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2015-04-09 13:57:40 +00:00
|
|
|
#
|
|
|
|
# Generic code
|
|
|
|
#
|
|
|
|
|
2015-04-20 10:56:49 +00:00
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
SOURCES += [
|
2015-08-21 07:17:44 +00:00
|
|
|
'common/BluetoothRilListener.cpp'
|
2015-04-20 10:56:49 +00:00
|
|
|
]
|
|
|
|
|
2015-08-17 07:30:34 +00:00
|
|
|
SOURCES += [
|
2015-08-21 07:17:44 +00:00
|
|
|
'common/BluetoothHidManager.cpp',
|
|
|
|
'common/BluetoothInterface.cpp',
|
2015-08-21 07:19:12 +00:00
|
|
|
'common/BluetoothProfileController.cpp',
|
|
|
|
'common/BluetoothReplyRunnable.cpp',
|
|
|
|
'common/BluetoothService.cpp',
|
2015-08-21 07:17:44 +00:00
|
|
|
'common/BluetoothUtils.cpp',
|
|
|
|
'common/BluetoothUuid.cpp',
|
|
|
|
'common/ObexBase.cpp',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothAdapter.cpp',
|
|
|
|
'common/webapi/BluetoothClassOfDevice.cpp',
|
|
|
|
'common/webapi/BluetoothDevice.cpp',
|
|
|
|
'common/webapi/BluetoothDiscoveryHandle.cpp',
|
|
|
|
'common/webapi/BluetoothGatt.cpp',
|
2015-09-23 06:16:27 +00:00
|
|
|
'common/webapi/BluetoothGattAttributeEvent.cpp',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothGattCharacteristic.cpp',
|
|
|
|
'common/webapi/BluetoothGattDescriptor.cpp',
|
|
|
|
'common/webapi/BluetoothGattServer.cpp',
|
|
|
|
'common/webapi/BluetoothGattService.cpp',
|
|
|
|
'common/webapi/BluetoothLeDeviceEvent.cpp',
|
|
|
|
'common/webapi/BluetoothManager.cpp',
|
2015-10-09 10:23:20 +00:00
|
|
|
'common/webapi/BluetoothMapRequestHandle.cpp',
|
2015-11-10 03:34:11 +00:00
|
|
|
'common/webapi/BluetoothObexAuthHandle.cpp',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothPairingHandle.cpp',
|
|
|
|
'common/webapi/BluetoothPairingListener.cpp',
|
|
|
|
'common/webapi/BluetoothPbapRequestHandle.cpp',
|
2015-08-25 09:57:09 +00:00
|
|
|
'ipc/BluetoothChild.cpp',
|
|
|
|
'ipc/BluetoothParent.cpp',
|
2015-08-21 07:15:41 +00:00
|
|
|
'ipc/BluetoothServiceChildProcess.cpp'
|
2015-08-17 07:30:34 +00:00
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
2015-08-21 07:19:12 +00:00
|
|
|
'common',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi',
|
|
|
|
'ipc'
|
2015-08-17 07:30:34 +00:00
|
|
|
]
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2015-04-09 13:57:40 +00:00
|
|
|
#
|
|
|
|
# Bluetooth backends
|
|
|
|
#
|
2015-04-09 13:57:40 +00:00
|
|
|
|
2013-10-23 06:12:24 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEZ']:
|
2014-07-24 15:55:33 +00:00
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-11-20 08:19:08 +00:00
|
|
|
'bluez/BluetoothA2dpManager.cpp',
|
2015-08-31 15:27:47 +00:00
|
|
|
'bluez/BluetoothAvrcpManager.cpp',
|
2014-02-25 02:38:51 +00:00
|
|
|
'bluez/BluetoothDBusService.cpp',
|
2013-11-18 06:29:45 +00:00
|
|
|
'bluez/BluetoothHfpManager.cpp',
|
2013-11-29 06:18:04 +00:00
|
|
|
'bluez/BluetoothOppManager.cpp',
|
|
|
|
'bluez/BluetoothSocket.cpp',
|
2014-11-28 10:49:40 +00:00
|
|
|
'bluez/BluetoothUnixSocketConnector.cpp'
|
2013-10-23 06:12:24 +00:00
|
|
|
]
|
2013-11-18 06:29:45 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluez',
|
2013-10-23 06:12:24 +00:00
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_B2G_BT_BLUEZ'] = True
|
2015-07-30 07:09:26 +00:00
|
|
|
elif CONFIG['MOZ_B2G_BT_DAEMON']:
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-11-20 08:19:08 +00:00
|
|
|
'bluedroid/BluetoothA2dpManager.cpp',
|
2015-08-31 15:27:47 +00:00
|
|
|
'bluedroid/BluetoothAvrcpManager.cpp',
|
2014-12-11 09:53:14 +00:00
|
|
|
'bluedroid/BluetoothDaemonA2dpInterface.cpp',
|
2015-01-07 10:32:05 +00:00
|
|
|
'bluedroid/BluetoothDaemonAvrcpInterface.cpp',
|
2015-09-17 08:08:47 +00:00
|
|
|
'bluedroid/BluetoothDaemonCoreInterface.cpp',
|
2015-05-27 08:52:00 +00:00
|
|
|
'bluedroid/BluetoothDaemonGattInterface.cpp',
|
2014-11-24 08:02:31 +00:00
|
|
|
'bluedroid/BluetoothDaemonHandsfreeInterface.cpp',
|
2014-11-03 12:03:49 +00:00
|
|
|
'bluedroid/BluetoothDaemonHelpers.cpp',
|
|
|
|
'bluedroid/BluetoothDaemonInterface.cpp',
|
|
|
|
'bluedroid/BluetoothDaemonSetupInterface.cpp',
|
2014-11-03 12:03:49 +00:00
|
|
|
'bluedroid/BluetoothDaemonSocketInterface.cpp',
|
2015-08-17 07:30:34 +00:00
|
|
|
'bluedroid/BluetoothGattManager.cpp',
|
2015-10-01 08:30:58 +00:00
|
|
|
'bluedroid/BluetoothMapBMessage.cpp',
|
2015-09-08 03:39:13 +00:00
|
|
|
'bluedroid/BluetoothMapFolder.cpp',
|
|
|
|
'bluedroid/BluetoothMapSmsManager.cpp',
|
2013-11-29 06:18:04 +00:00
|
|
|
'bluedroid/BluetoothOppManager.cpp',
|
2015-05-13 02:52:58 +00:00
|
|
|
'bluedroid/BluetoothPbapManager.cpp',
|
2014-02-25 02:38:51 +00:00
|
|
|
'bluedroid/BluetoothServiceBluedroid.cpp',
|
2013-11-29 06:18:04 +00:00
|
|
|
'bluedroid/BluetoothSocket.cpp',
|
2014-11-28 10:49:40 +00:00
|
|
|
'bluedroid/BluetoothSocketMessageWatcher.cpp'
|
2013-11-18 06:29:45 +00:00
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluedroid',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2014-02-25 03:37:37 +00:00
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
|
|
|
SOURCES += [
|
|
|
|
'bluedroid/hfp/BluetoothHfpManager.cpp',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluedroid/hfp',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
SOURCES += [
|
|
|
|
'bluedroid/hfp-fallback/BluetoothHfpManager.cpp',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluedroid/hfp-fallback',
|
|
|
|
]
|
|
|
|
|
2015-07-30 07:09:26 +00:00
|
|
|
DEFINES['MOZ_B2G_BT_DAEMON'] = True
|
2013-11-18 06:29:45 +00:00
|
|
|
elif CONFIG['MOZ_ENABLE_DBUS']:
|
2014-07-24 15:55:33 +00:00
|
|
|
CFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
|
|
|
|
CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
|
|
|
|
CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
|
2013-11-18 06:29:45 +00:00
|
|
|
SOURCES += [
|
2014-02-25 02:38:51 +00:00
|
|
|
'bluez/BluetoothDBusService.cpp',
|
2013-11-18 06:29:45 +00:00
|
|
|
'bluez/BluetoothHfpManager.cpp',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluez',
|
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_BLUETOOTH_DBUS'] = True
|
2014-02-23 02:42:12 +00:00
|
|
|
DEFINES['HAVE_PTHREADS'] = True
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2015-04-09 13:57:40 +00:00
|
|
|
#
|
|
|
|
# Exported interfaces
|
|
|
|
#
|
2013-04-16 19:24:43 +00:00
|
|
|
|
2015-08-17 07:30:34 +00:00
|
|
|
EXPORTS.mozilla.dom.bluetooth.ipc += [
|
2015-08-25 09:57:09 +00:00
|
|
|
'ipc/BluetoothMessageUtils.h',
|
2015-08-17 07:30:34 +00:00
|
|
|
]
|
2015-04-14 08:26:06 +00:00
|
|
|
EXPORTS.mozilla.dom.bluetooth += [
|
2015-08-21 07:17:44 +00:00
|
|
|
'common/BluetoothCommon.h',
|
2015-09-30 07:42:33 +00:00
|
|
|
'common/BluetoothHashKeys.h',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothAdapter.h',
|
|
|
|
'common/webapi/BluetoothClassOfDevice.h',
|
|
|
|
'common/webapi/BluetoothDevice.h',
|
|
|
|
'common/webapi/BluetoothDiscoveryHandle.h',
|
|
|
|
'common/webapi/BluetoothGatt.h',
|
2015-09-23 06:16:27 +00:00
|
|
|
'common/webapi/BluetoothGattAttributeEvent.h',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothGattCharacteristic.h',
|
|
|
|
'common/webapi/BluetoothGattDescriptor.h',
|
|
|
|
'common/webapi/BluetoothGattServer.h',
|
|
|
|
'common/webapi/BluetoothGattService.h',
|
|
|
|
'common/webapi/BluetoothLeDeviceEvent.h',
|
|
|
|
'common/webapi/BluetoothManager.h',
|
2015-10-09 10:23:20 +00:00
|
|
|
'common/webapi/BluetoothMapRequestHandle.h',
|
2015-11-10 03:34:11 +00:00
|
|
|
'common/webapi/BluetoothObexAuthHandle.h',
|
2015-08-21 07:15:41 +00:00
|
|
|
'common/webapi/BluetoothPairingHandle.h',
|
|
|
|
'common/webapi/BluetoothPairingListener.h',
|
|
|
|
'common/webapi/BluetoothPbapRequestHandle.h'
|
2015-08-17 07:30:34 +00:00
|
|
|
]
|
2015-11-13 14:23:41 +00:00
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
'common/BluetoothCommon.cpp',
|
|
|
|
]
|
|
|
|
|
2015-08-17 07:30:34 +00:00
|
|
|
IPDL_SOURCES += [
|
2015-08-25 09:57:09 +00:00
|
|
|
'ipc/BluetoothTypes.ipdlh',
|
|
|
|
'ipc/PBluetooth.ipdl',
|
2015-08-21 07:15:41 +00:00
|
|
|
'ipc/PBluetoothRequest.ipdl'
|
2015-04-14 08:26:06 +00:00
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
2013-10-23 21:20:55 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
2014-08-27 17:13:39 +00:00
|
|
|
'../network',
|
2015-08-21 07:15:41 +00:00
|
|
|
'../system/gonk'
|
2013-10-23 21:20:55 +00:00
|
|
|
]
|
2013-10-02 17:17:55 +00:00
|
|
|
|
2013-10-23 21:20:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
2015-11-13 14:23:41 +00:00
|
|
|
|
|
|
|
FINAL_LIBRARY = 'xul'
|