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-11-18 06:29:45 +00:00
|
|
|
PARALLEL_DIRS += ['interfaces']
|
|
|
|
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-04-23 21:54:15 +00:00
|
|
|
'BluetoothAdapter.cpp',
|
|
|
|
'BluetoothDevice.cpp',
|
2013-08-12 09:32:25 +00:00
|
|
|
'BluetoothHidManager.cpp',
|
2013-10-23 23:00:23 +00:00
|
|
|
'BluetoothManager.cpp',
|
|
|
|
'BluetoothProfileController.cpp',
|
|
|
|
'BluetoothPropertyContainer.cpp',
|
|
|
|
'BluetoothReplyRunnable.cpp',
|
|
|
|
'BluetoothService.cpp',
|
|
|
|
'BluetoothUtils.cpp',
|
|
|
|
'BluetoothUuid.cpp',
|
|
|
|
'ipc/BluetoothChild.cpp',
|
|
|
|
'ipc/BluetoothParent.cpp',
|
2013-10-23 23:05:43 +00:00
|
|
|
'ipc/BluetoothServiceChildProcess.cpp',
|
|
|
|
'ObexBase.cpp'
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if CONFIG['MOZ_B2G_RIL']:
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-09-09 11:54:56 +00:00
|
|
|
'BluetoothRilListener.cpp',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
|
|
|
|
2013-10-23 06:12:24 +00:00
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
|
|
|
if CONFIG['MOZ_B2G_BT_BLUEZ']:
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-11-20 08:19:08 +00:00
|
|
|
'bluez/BluetoothA2dpManager.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',
|
|
|
|
'bluez/BluetoothUnixSocketConnector.cpp',
|
2013-11-18 06:29:45 +00:00
|
|
|
'bluez/gonk/BluetoothGonkService.cpp',
|
|
|
|
'bluez/linux/BluetoothDBusService.cpp',
|
2013-10-23 06:12:24 +00:00
|
|
|
]
|
2013-11-18 06:29:45 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluez',
|
|
|
|
'bluez/gonk',
|
|
|
|
'bluez/linux',
|
2013-10-23 06:12:24 +00:00
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_B2G_BT_BLUEZ'] = True
|
2013-11-18 06:29:45 +00:00
|
|
|
elif CONFIG['MOZ_B2G_BT_BLUEDROID']:
|
2013-10-24 23:23:05 +00:00
|
|
|
SOURCES += [
|
2013-11-20 08:19:08 +00:00
|
|
|
'bluedroid/BluetoothA2dpManager.cpp',
|
2013-11-18 06:29:45 +00:00
|
|
|
'bluedroid/BluetoothHfpManager.cpp',
|
2013-11-29 06:18:04 +00:00
|
|
|
'bluedroid/BluetoothOppManager.cpp',
|
|
|
|
'bluedroid/BluetoothSocket.cpp',
|
2013-11-18 06:29:45 +00:00
|
|
|
'bluedroid/gonk/BluetoothServiceBluedroid.cpp',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluedroid',
|
|
|
|
'bluedroid/gonk',
|
2013-04-23 21:54:15 +00:00
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
|
2013-11-18 06:29:45 +00:00
|
|
|
elif CONFIG['MOZ_ENABLE_DBUS']:
|
|
|
|
SOURCES += [
|
|
|
|
'bluez/BluetoothHfpManager.cpp',
|
|
|
|
'bluez/linux/BluetoothDBusService.cpp',
|
|
|
|
]
|
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'bluez',
|
|
|
|
'bluez/linux',
|
|
|
|
]
|
2013-11-27 13:55:07 +00:00
|
|
|
DEFINES['MOZ_BLUETOOTH_DBUS'] = True
|
2013-04-23 21:54:15 +00:00
|
|
|
|
2013-11-19 02:47:14 +00:00
|
|
|
FINAL_LIBRARY = 'gklayout'
|
|
|
|
|
2013-04-16 19:24:43 +00:00
|
|
|
EXPORTS.mozilla.dom.bluetooth.ipc += [
|
2013-06-26 18:51:06 +00:00
|
|
|
'ipc/BluetoothMessageUtils.h',
|
2013-04-16 19:24:43 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
EXPORTS.mozilla.dom.bluetooth += [
|
|
|
|
'BluetoothCommon.h',
|
|
|
|
]
|
|
|
|
|
2013-07-01 13:56:28 +00:00
|
|
|
IPDL_SOURCES += [
|
|
|
|
'ipc/BluetoothTypes.ipdlh',
|
|
|
|
'ipc/PBluetooth.ipdl',
|
|
|
|
'ipc/PBluetoothRequest.ipdl',
|
|
|
|
]
|
2013-08-22 06:55:59 +00:00
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|
|
|
|
|
2013-10-23 21:20:55 +00:00
|
|
|
LOCAL_INCLUDES += [
|
|
|
|
'../base',
|
|
|
|
'../network/src',
|
|
|
|
'../system/gonk',
|
|
|
|
]
|
2013-10-02 17:17:55 +00:00
|
|
|
|
2013-10-23 21:20:55 +00:00
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|