michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_B2G_BT']: michael@0: SOURCES += [ michael@0: 'BluetoothAdapter.cpp', michael@0: 'BluetoothDevice.cpp', michael@0: 'BluetoothHidManager.cpp', michael@0: 'BluetoothManager.cpp', michael@0: 'BluetoothProfileController.cpp', michael@0: 'BluetoothPropertyContainer.cpp', michael@0: 'BluetoothReplyRunnable.cpp', michael@0: 'BluetoothService.cpp', michael@0: 'BluetoothUuid.cpp', michael@0: 'ipc/BluetoothChild.cpp', michael@0: 'ipc/BluetoothParent.cpp', michael@0: 'ipc/BluetoothServiceChildProcess.cpp', michael@0: 'ObexBase.cpp' michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_RIL']: michael@0: SOURCES += [ michael@0: 'BluetoothRilListener.cpp', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': michael@0: if CONFIG['MOZ_B2G_BT_BLUEZ']: michael@0: SOURCES += [ michael@0: 'bluez/BluetoothA2dpManager.cpp', michael@0: 'bluez/BluetoothDBusService.cpp', michael@0: 'bluez/BluetoothHfpManager.cpp', michael@0: 'bluez/BluetoothOppManager.cpp', michael@0: 'bluez/BluetoothSocket.cpp', michael@0: 'bluez/BluetoothUnixSocketConnector.cpp', michael@0: 'bluez/BluetoothUtils.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: 'bluez', michael@0: ] michael@0: DEFINES['MOZ_B2G_BT_BLUEZ'] = True michael@0: elif CONFIG['MOZ_B2G_BT_BLUEDROID']: michael@0: SOURCES += [ michael@0: 'bluedroid/BluetoothA2dpManager.cpp', michael@0: 'bluedroid/BluetoothOppManager.cpp', michael@0: 'bluedroid/BluetoothServiceBluedroid.cpp', michael@0: 'bluedroid/BluetoothSocket.cpp', michael@0: 'bluedroid/BluetoothUtils.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: 'bluedroid', michael@0: ] michael@0: michael@0: if CONFIG['MOZ_B2G_RIL']: michael@0: SOURCES += [ michael@0: 'bluedroid/hfp/BluetoothHfpManager.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: 'bluedroid/hfp', michael@0: ] michael@0: else: michael@0: SOURCES += [ michael@0: 'bluedroid/hfp-fallback/BluetoothHfpManager.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: 'bluedroid/hfp-fallback', michael@0: ] michael@0: michael@0: DEFINES['MOZ_B2G_BT_BLUEDROID'] = True michael@0: elif CONFIG['MOZ_ENABLE_DBUS']: michael@0: SOURCES += [ michael@0: 'bluez/BluetoothDBusService.cpp', michael@0: 'bluez/BluetoothHfpManager.cpp', michael@0: ] michael@0: LOCAL_INCLUDES += [ michael@0: 'bluez', michael@0: ] michael@0: DEFINES['MOZ_BLUETOOTH_DBUS'] = True michael@0: DEFINES['HAVE_PTHREADS'] = True michael@0: michael@0: FINAL_LIBRARY = 'gklayout' michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: 'ipc', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom.bluetooth.ipc += [ michael@0: 'ipc/BluetoothMessageUtils.h', michael@0: ] michael@0: michael@0: EXPORTS.mozilla.dom.bluetooth += [ michael@0: 'BluetoothCommon.h', michael@0: ] michael@0: michael@0: IPDL_SOURCES += [ michael@0: 'ipc/BluetoothTypes.ipdlh', michael@0: 'ipc/PBluetooth.ipdl', michael@0: 'ipc/PBluetoothRequest.ipdl', michael@0: ] michael@0: michael@0: FAIL_ON_WARNINGS = True michael@0: michael@0: LOCAL_INCLUDES += [ michael@0: '../base', michael@0: '../network/src', michael@0: '../system/gonk', michael@0: ] michael@0: michael@0: include('/ipc/chromium/chromium-config.mozbuild')