|
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/. |
|
6 |
|
7 if CONFIG['MOZ_B2G_BT']: |
|
8 SOURCES += [ |
|
9 'BluetoothAdapter.cpp', |
|
10 'BluetoothDevice.cpp', |
|
11 'BluetoothHidManager.cpp', |
|
12 'BluetoothManager.cpp', |
|
13 'BluetoothProfileController.cpp', |
|
14 'BluetoothPropertyContainer.cpp', |
|
15 'BluetoothReplyRunnable.cpp', |
|
16 'BluetoothService.cpp', |
|
17 'BluetoothUuid.cpp', |
|
18 'ipc/BluetoothChild.cpp', |
|
19 'ipc/BluetoothParent.cpp', |
|
20 'ipc/BluetoothServiceChildProcess.cpp', |
|
21 'ObexBase.cpp' |
|
22 ] |
|
23 |
|
24 if CONFIG['MOZ_B2G_RIL']: |
|
25 SOURCES += [ |
|
26 'BluetoothRilListener.cpp', |
|
27 ] |
|
28 |
|
29 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
|
30 if CONFIG['MOZ_B2G_BT_BLUEZ']: |
|
31 SOURCES += [ |
|
32 'bluez/BluetoothA2dpManager.cpp', |
|
33 'bluez/BluetoothDBusService.cpp', |
|
34 'bluez/BluetoothHfpManager.cpp', |
|
35 'bluez/BluetoothOppManager.cpp', |
|
36 'bluez/BluetoothSocket.cpp', |
|
37 'bluez/BluetoothUnixSocketConnector.cpp', |
|
38 'bluez/BluetoothUtils.cpp', |
|
39 ] |
|
40 LOCAL_INCLUDES += [ |
|
41 'bluez', |
|
42 ] |
|
43 DEFINES['MOZ_B2G_BT_BLUEZ'] = True |
|
44 elif CONFIG['MOZ_B2G_BT_BLUEDROID']: |
|
45 SOURCES += [ |
|
46 'bluedroid/BluetoothA2dpManager.cpp', |
|
47 'bluedroid/BluetoothOppManager.cpp', |
|
48 'bluedroid/BluetoothServiceBluedroid.cpp', |
|
49 'bluedroid/BluetoothSocket.cpp', |
|
50 'bluedroid/BluetoothUtils.cpp', |
|
51 ] |
|
52 LOCAL_INCLUDES += [ |
|
53 'bluedroid', |
|
54 ] |
|
55 |
|
56 if CONFIG['MOZ_B2G_RIL']: |
|
57 SOURCES += [ |
|
58 'bluedroid/hfp/BluetoothHfpManager.cpp', |
|
59 ] |
|
60 LOCAL_INCLUDES += [ |
|
61 'bluedroid/hfp', |
|
62 ] |
|
63 else: |
|
64 SOURCES += [ |
|
65 'bluedroid/hfp-fallback/BluetoothHfpManager.cpp', |
|
66 ] |
|
67 LOCAL_INCLUDES += [ |
|
68 'bluedroid/hfp-fallback', |
|
69 ] |
|
70 |
|
71 DEFINES['MOZ_B2G_BT_BLUEDROID'] = True |
|
72 elif CONFIG['MOZ_ENABLE_DBUS']: |
|
73 SOURCES += [ |
|
74 'bluez/BluetoothDBusService.cpp', |
|
75 'bluez/BluetoothHfpManager.cpp', |
|
76 ] |
|
77 LOCAL_INCLUDES += [ |
|
78 'bluez', |
|
79 ] |
|
80 DEFINES['MOZ_BLUETOOTH_DBUS'] = True |
|
81 DEFINES['HAVE_PTHREADS'] = True |
|
82 |
|
83 FINAL_LIBRARY = 'gklayout' |
|
84 |
|
85 LOCAL_INCLUDES += [ |
|
86 'ipc', |
|
87 ] |
|
88 |
|
89 EXPORTS.mozilla.dom.bluetooth.ipc += [ |
|
90 'ipc/BluetoothMessageUtils.h', |
|
91 ] |
|
92 |
|
93 EXPORTS.mozilla.dom.bluetooth += [ |
|
94 'BluetoothCommon.h', |
|
95 ] |
|
96 |
|
97 IPDL_SOURCES += [ |
|
98 'ipc/BluetoothTypes.ipdlh', |
|
99 'ipc/PBluetooth.ipdl', |
|
100 'ipc/PBluetoothRequest.ipdl', |
|
101 ] |
|
102 |
|
103 FAIL_ON_WARNINGS = True |
|
104 |
|
105 LOCAL_INCLUDES += [ |
|
106 '../base', |
|
107 '../network/src', |
|
108 '../system/gonk', |
|
109 ] |
|
110 |
|
111 include('/ipc/chromium/chromium-config.mozbuild') |