blob: e4beadb00b8e1ef3da835b31dc3e71e7ba41c392 [file] [log] [blame]
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -07001cc_library_shared {
Jakub Pawlowskidc5dc6c2017-11-01 10:02:28 -07002 name: "libbluetooth-binder",
Daniel Cardenas02c49bc2017-11-17 18:18:28 -08003 product_variables: {
4 pdk: {
5 enabled: false,
6 },
7 },
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -07008 srcs: [
Jakub Pawlowski57715db2017-11-06 10:04:53 -08009 "android/bluetooth/bluetooth_device.cc",
Jakub Pawlowskidc5dc6c2017-11-01 10:02:28 -070010 "android/bluetooth/IBluetoothSocketManager.aidl",
Jakub Pawlowski62b9bf72017-11-01 14:31:03 -070011 "android/os/parcel_uuid.cc",
Colin Cross62084352019-05-23 14:12:59 -070012 /* TODO: Uncomment this files as they get converted one-by-one into native implementation
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070013 "android/bluetooth/IBluetooth.aidl",
14 "android/bluetooth/IBluetoothA2dp.aidl",
15 "android/bluetooth/IBluetoothA2dpSink.aidl",
16 "android/bluetooth/IBluetoothAvrcpController.aidl",
Ajay Panickerce1a2b32018-03-16 17:13:50 -070017 "android/bluetooth/IBluetoothAvrcpTarget.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070018 "android/bluetooth/IBluetoothCallback.aidl",
19 "android/bluetooth/IBluetoothProfileServiceConnection.aidl",
20 "android/bluetooth/IBluetoothHeadset.aidl",
21 "android/bluetooth/IBluetoothHeadsetPhone.aidl",
Jakub Pawlowskiad898562018-02-13 10:12:00 -080022 "android/bluetooth/IBluetoothHearingAid.aidl",
Hansong Zhangbb3d9f72017-10-20 15:56:54 -070023 "android/bluetooth/IBluetoothHidHost.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070024 "android/bluetooth/IBluetoothPan.aidl",
25 "android/bluetooth/IBluetoothManager.aidl",
26 "android/bluetooth/IBluetoothManagerCallback.aidl",
27 "android/bluetooth/IBluetoothMap.aidl",
28 "android/bluetooth/IBluetoothMapClient.aidl",
29 "android/bluetooth/IBluetoothPbap.aidl",
30 "android/bluetooth/IBluetoothPbapClient.aidl",
31 "android/bluetooth/IBluetoothSap.aidl",
32 "android/bluetooth/IBluetoothStateChangeCallback.aidl",
33 "android/bluetooth/IBluetoothHeadsetClient.aidl",
Hansong Zhangbb3d9f72017-10-20 15:56:54 -070034 "android/bluetooth/IBluetoothHidDevice.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070035 "android/bluetooth/IBluetoothHidDeviceCallback.aidl",
36 "android/bluetooth/IBluetoothGatt.aidl",
37 "android/bluetooth/IBluetoothGattCallback.aidl",
Ugo Yu2312de12019-01-12 08:13:16 +080038 "android/bluetooth/IBluetoothMetadataListener.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070039 "android/bluetooth/IBluetoothGattServerCallback.aidl",
40 "android/bluetooth/le/IAdvertisingSetCallback.aidl",
41 "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
42 "android/bluetooth/le/IScannerCallback.aidl"
Colin Cross62084352019-05-23 14:12:59 -070043 */
44 ],
45 export_include_dirs: ["./"],
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070046 aidl: {
47 export_aidl_headers: true,
48 include_dirs: [
49 "frameworks/native/aidl/binder",
Jakub Pawlowski62b9bf72017-11-01 14:31:03 -070050
Colin Cross62084352019-05-23 14:12:59 -070051 /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */
Jakub Pawlowski62b9bf72017-11-01 14:31:03 -070052 "frameworks/base/core/java",
Jakub Pawlowski57715db2017-11-06 10:04:53 -080053 "system/bt/binder",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070054 ],
55 },
56 include_dirs: [
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070057 "system/bt/types",
58 ],
59 shared_libs: [
60 "libandroid_runtime",
61 "libbinder",
62 "libchrome",
63 "libnativehelper",
64 "libcutils",
65 "libutils",
66 "liblog",
67 ],
68
69 static_libs: [
70 "libbluetooth-types",
71 ],
72 cflags: [
73 "-Wall",
Chih-Hung Hsieh759b57d2017-11-20 10:25:49 -080074 "-Werror",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070075 "-Wextra",
76 "-Wno-unused-parameter",
77 ],
Peter Collingbourne6fe96ce2018-12-06 17:04:43 -080078 sanitize: {
79 scs: true,
80 },
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070081}
Colin Crossbcddf242017-11-14 13:05:37 -080082
83// AIDL interface between libbluetooth-binder and framework.jar
84filegroup {
85 name: "libbluetooth-binder-aidl",
86 srcs: [
87 "android/bluetooth/IBluetooth.aidl",
88 "android/bluetooth/IBluetoothA2dp.aidl",
89 "android/bluetooth/IBluetoothA2dpSink.aidl",
90 "android/bluetooth/IBluetoothAvrcpController.aidl",
Ajay Panickerce1a2b32018-03-16 17:13:50 -070091 "android/bluetooth/IBluetoothAvrcpTarget.aidl",
Colin Crossbcddf242017-11-14 13:05:37 -080092 "android/bluetooth/IBluetoothCallback.aidl",
93 "android/bluetooth/IBluetoothProfileServiceConnection.aidl",
94 "android/bluetooth/IBluetoothHeadset.aidl",
95 "android/bluetooth/IBluetoothHeadsetPhone.aidl",
Jakub Pawlowskiad898562018-02-13 10:12:00 -080096 "android/bluetooth/IBluetoothHearingAid.aidl",
Colin Crossbcddf242017-11-14 13:05:37 -080097 "android/bluetooth/IBluetoothHidHost.aidl",
98 "android/bluetooth/IBluetoothPan.aidl",
99 "android/bluetooth/IBluetoothManager.aidl",
100 "android/bluetooth/IBluetoothManagerCallback.aidl",
101 "android/bluetooth/IBluetoothMap.aidl",
102 "android/bluetooth/IBluetoothMapClient.aidl",
103 "android/bluetooth/IBluetoothPbap.aidl",
104 "android/bluetooth/IBluetoothPbapClient.aidl",
105 "android/bluetooth/IBluetoothSap.aidl",
106 "android/bluetooth/IBluetoothSocketManager.aidl",
107 "android/bluetooth/IBluetoothStateChangeCallback.aidl",
108 "android/bluetooth/IBluetoothHeadsetClient.aidl",
109 "android/bluetooth/IBluetoothHidDevice.aidl",
110 "android/bluetooth/IBluetoothHidDeviceCallback.aidl",
111 "android/bluetooth/IBluetoothGatt.aidl",
112 "android/bluetooth/IBluetoothGattCallback.aidl",
Ugo Yu2312de12019-01-12 08:13:16 +0800113 "android/bluetooth/IBluetoothMetadataListener.aidl",
Colin Crossbcddf242017-11-14 13:05:37 -0800114 "android/bluetooth/IBluetoothGattServerCallback.aidl",
115 "android/bluetooth/le/IAdvertisingSetCallback.aidl",
116 "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
117 "android/bluetooth/le/IScannerCallback.aidl",
118 ],
119}