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