blob: e3bde74af8bad5d44c245dc314d476fa4a87ac3a [file] [log] [blame]
Jakub Pawlowski5f885332017-06-24 15:25:07 -07001// Bluetooth types
2cc_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 Cross62084352019-05-23 14:12:59 -070010 header_libs: ["libbluetooth_headers"],
Jakub Pawlowski5f885332017-06-24 15:25:07 -070011 srcs: [
Bailey Forrest780e29c2018-08-21 17:20:29 -070012 "bluetooth/a2dp_codec_config.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070013 "bluetooth/adapter_state.cc",
14 "bluetooth/advertise_data.cc",
15 "bluetooth/advertise_settings.cc",
Bailey Forrest780e29c2018-08-21 17:20:29 -070016 "bluetooth/avrcp_int_value.cc",
Bailey Forrest62aa15f2017-01-30 17:38:58 -080017 "bluetooth/avrcp_media_attr.cc",
Bailey Forrest780e29c2018-08-21 17:20:29 -070018 "bluetooth/avrcp_register_notification_response.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070019 "bluetooth/characteristic.cc",
20 "bluetooth/descriptor.cc",
Bailey Forrest62aa15f2017-01-30 17:38:58 -080021 "bluetooth/remote_device_props.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070022 "bluetooth/scan_filter.cc",
23 "bluetooth/scan_result.cc",
24 "bluetooth/scan_settings.cc",
25 "bluetooth/service.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070026 "bluetooth/util/atomic_string.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070027 ],
28 export_include_dirs: ["./"],
29 include_dirs: ["system/bt"],
30 shared_libs: [
31 "libbase",
32 ],
33}
34
35// Bluetooth Binder shared library
36cc_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 Cross62084352019-05-23 14:12:59 -070043 header_libs: ["libbluetooth_headers"],
Jakub Pawlowski5f885332017-06-24 15:25:07 -070044 srcs: [
45 "android/bluetooth/IBluetooth.aidl",
Bailey Forrest62aa15f2017-01-30 17:38:58 -080046 "android/bluetooth/IBluetoothA2dpSink.aidl",
47 "android/bluetooth/IBluetoothA2dpSinkCallback.aidl",
Bailey Forrest780e29c2018-08-21 17:20:29 -070048 "android/bluetooth/IBluetoothA2dpSource.aidl",
49 "android/bluetooth/IBluetoothA2dpSourceCallback.aidl",
Bailey Forrest62aa15f2017-01-30 17:38:58 -080050 "android/bluetooth/IBluetoothAvrcpControl.aidl",
51 "android/bluetooth/IBluetoothAvrcpControlCallback.aidl",
Bailey Forrest780e29c2018-08-21 17:20:29 -070052 "android/bluetooth/IBluetoothAvrcpTarget.aidl",
53 "android/bluetooth/IBluetoothAvrcpTargetCallback.aidl",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070054 "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 Forrest780e29c2018-08-21 17:20:29 -070067 "android/bluetooth/bluetooth_a2dp_codec_config.cc",
68 "android/bluetooth/bluetooth_avrcp_int_value.cc",
Bailey Forrest62aa15f2017-01-30 17:38:58 -080069 "android/bluetooth/bluetooth_avrcp_media_attr.cc",
Bailey Forrest780e29c2018-08-21 17:20:29 -070070 "android/bluetooth/bluetooth_avrcp_register_notification_response.cc",
71 "android/bluetooth/bluetooth_avrcp_string_value.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070072 "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 Forrest62aa15f2017-01-30 17:38:58 -080076 "android/bluetooth/bluetooth_remote_device_props.cc",
Jakub Pawlowski5f885332017-06-24 15:25:07 -070077 "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 Pawlowski819e2ec2017-07-10 09:56:09 -070095 static_libs: [
96 "libbluetooth-types",
Colin Cross62084352019-05-23 14:12:59 -070097 ],
Jakub Pawlowski5f885332017-06-24 15:25:07 -070098}