1 # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 if CONFIG['MOZ_B2G_BT']:
9 'BluetoothAdapter.cpp',
10 'BluetoothDevice.cpp',
11 'BluetoothHidManager.cpp',
12 'BluetoothManager.cpp',
13 'BluetoothProfileController.cpp',
14 'BluetoothPropertyContainer.cpp',
15 'BluetoothReplyRunnable.cpp',
16 'BluetoothService.cpp',
18 'ipc/BluetoothChild.cpp',
19 'ipc/BluetoothParent.cpp',
20 'ipc/BluetoothServiceChildProcess.cpp',
24 if CONFIG['MOZ_B2G_RIL']:
26 'BluetoothRilListener.cpp',
29 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
30 if CONFIG['MOZ_B2G_BT_BLUEZ']:
31 CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
33 'bluez/BluetoothA2dpManager.cpp',
34 'bluez/BluetoothDBusService.cpp',
35 'bluez/BluetoothHfpManager.cpp',
36 'bluez/BluetoothOppManager.cpp',
37 'bluez/BluetoothSocket.cpp',
38 'bluez/BluetoothUnixSocketConnector.cpp',
39 'bluez/BluetoothUtils.cpp',
44 DEFINES['MOZ_B2G_BT_BLUEZ'] = True
45 elif CONFIG['MOZ_B2G_BT_BLUEDROID']:
47 'bluedroid/BluetoothA2dpManager.cpp',
48 'bluedroid/BluetoothInterface.cpp',
49 'bluedroid/BluetoothOppManager.cpp',
50 'bluedroid/BluetoothServiceBluedroid.cpp',
51 'bluedroid/BluetoothSocket.cpp',
52 'bluedroid/BluetoothUtils.cpp',
58 if CONFIG['MOZ_B2G_RIL']:
60 'bluedroid/hfp/BluetoothHfpManager.cpp',
67 'bluedroid/hfp-fallback/BluetoothHfpManager.cpp',
70 'bluedroid/hfp-fallback',
73 DEFINES['MOZ_B2G_BT_BLUEDROID'] = True
74 elif CONFIG['MOZ_ENABLE_DBUS']:
75 CFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
76 CFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
77 CXXFLAGS += CONFIG['MOZ_DBUS_CFLAGS']
78 CXXFLAGS += CONFIG['MOZ_DBUS_GLIB_CFLAGS']
80 'bluez/BluetoothDBusService.cpp',
81 'bluez/BluetoothHfpManager.cpp',
86 DEFINES['MOZ_BLUETOOTH_DBUS'] = True
87 DEFINES['HAVE_PTHREADS'] = True
95 EXPORTS.mozilla.dom.bluetooth.ipc += [
96 'ipc/BluetoothMessageUtils.h',
99 EXPORTS.mozilla.dom.bluetooth += [
100 'BluetoothAdapter.h',
103 'BluetoothManager.h',
107 'ipc/BluetoothTypes.ipdlh',
108 'ipc/PBluetooth.ipdl',
109 'ipc/PBluetoothRequest.ipdl',
112 FAIL_ON_WARNINGS = True
120 include('/ipc/chromium/chromium-config.mozbuild')