Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 1 | // Bluetooth types |
| 2 | cc_library_static { |
| 3 | name: "libbluetooth-common", |
| 4 | defaults: ["fluoride_defaults"], |
| 5 | cflags: [ |
| 6 | /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ |
| 7 | "-fvisibility=default", |
| 8 | ], |
| 9 | host_supported: true, |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 10 | header_libs: ["libbluetooth_headers"], |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 11 | srcs: [ |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 12 | "bluetooth/a2dp_codec_config.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 13 | "bluetooth/adapter_state.cc", |
| 14 | "bluetooth/advertise_data.cc", |
| 15 | "bluetooth/advertise_settings.cc", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 16 | "bluetooth/avrcp_int_value.cc", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 17 | "bluetooth/avrcp_media_attr.cc", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 18 | "bluetooth/avrcp_register_notification_response.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 19 | "bluetooth/characteristic.cc", |
| 20 | "bluetooth/descriptor.cc", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 21 | "bluetooth/remote_device_props.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 22 | "bluetooth/scan_filter.cc", |
| 23 | "bluetooth/scan_result.cc", |
| 24 | "bluetooth/scan_settings.cc", |
| 25 | "bluetooth/service.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 26 | "bluetooth/util/atomic_string.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 27 | ], |
| 28 | export_include_dirs: ["./"], |
| 29 | include_dirs: ["system/bt"], |
| 30 | shared_libs: [ |
| 31 | "libbase", |
| 32 | ], |
| 33 | } |
| 34 | |
| 35 | // Bluetooth Binder shared library |
| 36 | cc_library_static { |
| 37 | name: "libbluetooth-binder-common", |
| 38 | defaults: ["fluoride_defaults"], |
| 39 | cflags: [ |
| 40 | /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ |
| 41 | "-fvisibility=default", |
| 42 | ], |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 43 | header_libs: ["libbluetooth_headers"], |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 44 | srcs: [ |
| 45 | "android/bluetooth/IBluetooth.aidl", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 46 | "android/bluetooth/IBluetoothA2dpSink.aidl", |
| 47 | "android/bluetooth/IBluetoothA2dpSinkCallback.aidl", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 48 | "android/bluetooth/IBluetoothA2dpSource.aidl", |
| 49 | "android/bluetooth/IBluetoothA2dpSourceCallback.aidl", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 50 | "android/bluetooth/IBluetoothAvrcpControl.aidl", |
| 51 | "android/bluetooth/IBluetoothAvrcpControlCallback.aidl", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 52 | "android/bluetooth/IBluetoothAvrcpTarget.aidl", |
| 53 | "android/bluetooth/IBluetoothAvrcpTargetCallback.aidl", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 54 | "android/bluetooth/IBluetoothCallback.aidl", |
| 55 | "android/bluetooth/IBluetoothGattClient.aidl", |
| 56 | "android/bluetooth/IBluetoothGattClientCallback.aidl", |
| 57 | "android/bluetooth/IBluetoothGattServer.aidl", |
| 58 | "android/bluetooth/IBluetoothGattServerCallback.aidl", |
| 59 | "android/bluetooth/IBluetoothLeAdvertiser.aidl", |
| 60 | "android/bluetooth/IBluetoothLeAdvertiserCallback.aidl", |
| 61 | "android/bluetooth/IBluetoothLeScanner.aidl", |
| 62 | "android/bluetooth/IBluetoothLeScannerCallback.aidl", |
| 63 | "android/bluetooth/IBluetoothLowEnergy.aidl", |
| 64 | "android/bluetooth/IBluetoothLowEnergyCallback.aidl", |
| 65 | "android/bluetooth/advertise_data.cc", |
| 66 | "android/bluetooth/advertise_settings.cc", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 67 | "android/bluetooth/bluetooth_a2dp_codec_config.cc", |
| 68 | "android/bluetooth/bluetooth_avrcp_int_value.cc", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 69 | "android/bluetooth/bluetooth_avrcp_media_attr.cc", |
Bailey Forrest | 780e29c | 2018-08-21 17:20:29 -0700 | [diff] [blame] | 70 | "android/bluetooth/bluetooth_avrcp_register_notification_response.cc", |
| 71 | "android/bluetooth/bluetooth_avrcp_string_value.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 72 | "android/bluetooth/bluetooth_gatt_characteristic.cc", |
| 73 | "android/bluetooth/bluetooth_gatt_descriptor.cc", |
| 74 | "android/bluetooth/bluetooth_gatt_included_service.cc", |
| 75 | "android/bluetooth/bluetooth_gatt_service.cc", |
Bailey Forrest | 62aa15f | 2017-01-30 17:38:58 -0800 | [diff] [blame] | 76 | "android/bluetooth/bluetooth_remote_device_props.cc", |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 77 | "android/bluetooth/scan_filter.cc", |
| 78 | "android/bluetooth/scan_result.cc", |
| 79 | "android/bluetooth/scan_settings.cc", |
| 80 | "android/bluetooth/uuid.cc", |
| 81 | ], |
| 82 | aidl: { |
| 83 | export_aidl_headers: true, |
| 84 | include_dirs: [ |
| 85 | "frameworks/native/aidl/binder", |
| 86 | "system/bt/service/common", |
| 87 | ], |
| 88 | }, |
| 89 | export_include_dirs: ["./"], |
| 90 | whole_static_libs: ["libbluetooth-common"], |
| 91 | shared_libs: [ |
| 92 | "libbase", |
| 93 | "libbinder", |
| 94 | ], |
Jakub Pawlowski | 819e2ec | 2017-07-10 09:56:09 -0700 | [diff] [blame] | 95 | static_libs: [ |
| 96 | "libbluetooth-types", |
Colin Cross | 6208435 | 2019-05-23 14:12:59 -0700 | [diff] [blame] | 97 | ], |
Jakub Pawlowski | 5f88533 | 2017-06-24 15:25:07 -0700 | [diff] [blame] | 98 | } |