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_file_descriptor.cc", |
| 12 | "android/os/parcel_uuid.cc", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 13 | /* 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 Zhang | bb3d9f7 | 2017-10-20 15:56:54 -0700 | [diff] [blame] | 24 | "android/bluetooth/IBluetoothHidHost.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 25 | "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 Zhang | bb3d9f7 | 2017-10-20 15:56:54 -0700 | [diff] [blame] | 35 | "android/bluetooth/IBluetoothHidDevice.aidl", |
Jakub Pawlowski | 0a5d9eb | 2017-08-08 04:00:13 -0700 | [diff] [blame] | 36 | "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 Pawlowski | 62b9bf7 | 2017-11-01 14:31:03 -0700 | [diff] [blame] | 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 | |
| 51 | /* required for android.os.ParcelUuid, and android.os.ParcelFileDescriptor */ |
| 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: [ |
| 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 | } |