Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 1 | cc_library_shared { |
Jakub Pawlowski | dc5dc6c | 2017-11-01 10:02:28 -0700 | [diff] [blame] | 2 | name: "libbluetooth-binder", |
Daniel Cardenas | 02c49bc | 2017-11-17 18:18:28 -0800 | [diff] [blame] | 3 | product_variables: { |
| 4 | pdk: { |
| 5 | enabled: false, |
| 6 | }, |
| 7 | }, |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 8 | srcs: [ |
Jakub Pawlowski | 57715db | 2017-11-06 10:04:53 -0800 | [diff] [blame] | 9 | "android/bluetooth/bluetooth_device.cc", |
Jakub Pawlowski | dc5dc6c | 2017-11-01 10:02:28 -0700 | [diff] [blame] | 10 | "android/bluetooth/IBluetoothSocketManager.aidl", |
Jakub Pawlowski | 62b9bf7 | 2017-11-01 14:31:03 -0700 | [diff] [blame] | 11 | "android/os/parcel_uuid.cc", |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 12 | /* TODO: Uncomment this files as they get converted one-by-one into native implementation |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 13 | "android/bluetooth/IBluetooth.aidl", |
| 14 | "android/bluetooth/IBluetoothA2dp.aidl", |
| 15 | "android/bluetooth/IBluetoothA2dpSink.aidl", |
| 16 | "android/bluetooth/IBluetoothAvrcpController.aidl", |
Ajay Panicker | ce1a2b3 | 2018-03-16 17:13:50 -0700 | [diff] [blame] | 17 | "android/bluetooth/IBluetoothAvrcpTarget.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 18 | "android/bluetooth/IBluetoothCallback.aidl", |
| 19 | "android/bluetooth/IBluetoothProfileServiceConnection.aidl", |
| 20 | "android/bluetooth/IBluetoothHeadset.aidl", |
| 21 | "android/bluetooth/IBluetoothHeadsetPhone.aidl", |
Jakub Pawlowski | ad89856 | 2018-02-13 10:12:00 -0800 | [diff] [blame] | 22 | "android/bluetooth/IBluetoothHearingAid.aidl", |
Hansong Zhang | bb3d9f7 | 2017-10-20 15:56:54 -0700 | [diff] [blame] | 23 | "android/bluetooth/IBluetoothHidHost.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 24 | "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 Zhang | bb3d9f7 | 2017-10-20 15:56:54 -0700 | [diff] [blame] | 34 | "android/bluetooth/IBluetoothHidDevice.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 35 | "android/bluetooth/IBluetoothHidDeviceCallback.aidl", |
| 36 | "android/bluetooth/IBluetoothGatt.aidl", |
| 37 | "android/bluetooth/IBluetoothGattCallback.aidl", |
Ugo Yu | 2312de1 | 2019-01-12 08:13:16 +0800 | [diff] [blame] | 38 | "android/bluetooth/IBluetoothMetadataListener.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 39 | "android/bluetooth/IBluetoothGattServerCallback.aidl", |
| 40 | "android/bluetooth/le/IAdvertisingSetCallback.aidl", |
| 41 | "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl", |
| 42 | "android/bluetooth/le/IScannerCallback.aidl" |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 43 | */ |
| 44 | ], |
| 45 | export_include_dirs: ["./"], |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 46 | aidl: { |
| 47 | export_aidl_headers: true, |
| 48 | include_dirs: [ |
| 49 | "frameworks/native/aidl/binder", |
Jakub Pawlowski | 62b9bf7 | 2017-11-01 14:31:03 -0700 | [diff] [blame] | 50 | |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 51 | /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */ |
Jakub Pawlowski | 62b9bf7 | 2017-11-01 14:31:03 -0700 | [diff] [blame] | 52 | "frameworks/base/core/java", |
Jakub Pawlowski | 57715db | 2017-11-06 10:04:53 -0800 | [diff] [blame] | 53 | "system/bt/binder", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 54 | ], |
| 55 | }, |
| 56 | include_dirs: [ |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 57 | "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 Hsieh | 759b57d | 2017-11-20 10:25:49 -0800 | [diff] [blame] | 74 | "-Werror", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 75 | "-Wextra", |
| 76 | "-Wno-unused-parameter", |
| 77 | ], |
Peter Collingbourne | 6fe96ce | 2018-12-06 17:04:43 -0800 | [diff] [blame] | 78 | sanitize: { |
| 79 | scs: true, |
| 80 | }, |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 81 | } |
Colin Cross | bcddf24 | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 82 | |
| 83 | // AIDL interface between libbluetooth-binder and framework.jar |
| 84 | filegroup { |
| 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 Panicker | ce1a2b3 | 2018-03-16 17:13:50 -0700 | [diff] [blame] | 91 | "android/bluetooth/IBluetoothAvrcpTarget.aidl", |
Colin Cross | bcddf24 | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 92 | "android/bluetooth/IBluetoothCallback.aidl", |
| 93 | "android/bluetooth/IBluetoothProfileServiceConnection.aidl", |
| 94 | "android/bluetooth/IBluetoothHeadset.aidl", |
| 95 | "android/bluetooth/IBluetoothHeadsetPhone.aidl", |
Jakub Pawlowski | ad89856 | 2018-02-13 10:12:00 -0800 | [diff] [blame] | 96 | "android/bluetooth/IBluetoothHearingAid.aidl", |
Colin Cross | bcddf24 | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 97 | "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 Yu | 2312de1 | 2019-01-12 08:13:16 +0800 | [diff] [blame] | 113 | "android/bluetooth/IBluetoothMetadataListener.aidl", |
Colin Cross | bcddf24 | 2017-11-14 13:05:37 -0800 | [diff] [blame] | 114 | "android/bluetooth/IBluetoothGattServerCallback.aidl", |
| 115 | "android/bluetooth/le/IAdvertisingSetCallback.aidl", |
| 116 | "android/bluetooth/le/IPeriodicAdvertisingCallback.aidl", |
| 117 | "android/bluetooth/le/IScannerCallback.aidl", |
| 118 | ], |
| 119 | } |