blob: f936505403d236b2bd3a043023cfad0d0b787d82 [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_file_descriptor.cc",
12 "android/os/parcel_uuid.cc",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070013/* TODO: Uncomment this files as they get converted one-by-one into native implementation
14 "android/bluetooth/IBluetooth.aidl",
15 "android/bluetooth/IBluetoothA2dp.aidl",
16 "android/bluetooth/IBluetoothA2dpSink.aidl",
17 "android/bluetooth/IBluetoothAvrcpController.aidl",
18 "android/bluetooth/IBluetoothCallback.aidl",
19 "android/bluetooth/IBluetoothProfileServiceConnection.aidl",
20 "android/bluetooth/IBluetoothHeadset.aidl",
21 "android/bluetooth/IBluetoothHeadsetPhone.aidl",
22 "android/bluetooth/IBluetoothHealth.aidl",
23 "android/bluetooth/IBluetoothHealthCallback.aidl",
Hansong Zhangbb3d9f72017-10-20 15:56:54 -070024 "android/bluetooth/IBluetoothHidHost.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070025 "android/bluetooth/IBluetoothPan.aidl",
26 "android/bluetooth/IBluetoothManager.aidl",
27 "android/bluetooth/IBluetoothManagerCallback.aidl",
28 "android/bluetooth/IBluetoothMap.aidl",
29 "android/bluetooth/IBluetoothMapClient.aidl",
30 "android/bluetooth/IBluetoothPbap.aidl",
31 "android/bluetooth/IBluetoothPbapClient.aidl",
32 "android/bluetooth/IBluetoothSap.aidl",
33 "android/bluetooth/IBluetoothStateChangeCallback.aidl",
34 "android/bluetooth/IBluetoothHeadsetClient.aidl",
Hansong Zhangbb3d9f72017-10-20 15:56:54 -070035 "android/bluetooth/IBluetoothHidDevice.aidl",
Jakub Pawlowski0a5d9eb2017-08-08 04:00:13 -070036 "android/bluetooth/IBluetoothHidDeviceCallback.aidl",
37 "android/bluetooth/IBluetoothGatt.aidl",
38 "android/bluetooth/IBluetoothGattCallback.aidl",
39 "android/bluetooth/IBluetoothGattServerCallback.aidl",
40 "android/bluetooth/le/IAdvertisingSetCallback.aidl",
41 "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl",
42 "android/bluetooth/le/IScannerCallback.aidl"
43*/
44 ],
Jakub Pawlowski62b9bf72017-11-01 14:31:03 -070045 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
51 /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */
52 "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: [
57 "libnativehelper/include/nativehelper",
58 "system/bt/types",
59 ],
60 shared_libs: [
61 "libandroid_runtime",
62 "libbinder",
63 "libchrome",
64 "libnativehelper",
65 "libcutils",
66 "libutils",
67 "liblog",
68 ],
69
70 static_libs: [
71 "libbluetooth-types",
72 ],
73 cflags: [
74 "-Wall",
75 "-Wextra",
76 "-Wno-unused-parameter",
77 ],
78}