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