1// Bluetooth types 2package { 3 // See: http://go/android-license-faq 4 // A large-scale-change added 'default_applicable_licenses' to import 5 // all of the 'license_kinds' from "system_bt_license" 6 // to get the below license kinds: 7 // SPDX-license-identifier-Apache-2.0 8 default_applicable_licenses: ["system_bt_license"], 9} 10 11cc_library_static { 12 name: "libbluetooth-common", 13 defaults: ["fluoride_defaults"], 14 cflags: [ 15 /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ 16 "-fvisibility=default", 17 ], 18 host_supported: true, 19 header_libs: ["libbluetooth_headers"], 20 srcs: [ 21 "bluetooth/a2dp_codec_config.cc", 22 "bluetooth/adapter_state.cc", 23 "bluetooth/advertise_data.cc", 24 "bluetooth/advertise_settings.cc", 25 "bluetooth/avrcp_int_value.cc", 26 "bluetooth/avrcp_media_attr.cc", 27 "bluetooth/avrcp_register_notification_response.cc", 28 "bluetooth/characteristic.cc", 29 "bluetooth/descriptor.cc", 30 "bluetooth/remote_device_props.cc", 31 "bluetooth/scan_filter.cc", 32 "bluetooth/scan_result.cc", 33 "bluetooth/scan_settings.cc", 34 "bluetooth/service.cc", 35 "bluetooth/util/atomic_string.cc", 36 ], 37 export_include_dirs: ["./"], 38 include_dirs: ["packages/modules/Bluetooth/system"], 39 shared_libs: [ 40 "libbase", 41 ], 42} 43 44// Bluetooth Binder shared library 45cc_library_static { 46 name: "libbluetooth-binder-common", 47 visibility:[ 48 "//packages/apps/Test/connectivity/sl4n", 49 "//packages/modules/Bluetooth:__subpackages__", 50 ], 51 defaults: ["fluoride_defaults"], 52 cflags: [ 53 /* we export all classes, so change default visibility, instead of having EXPORT_SYMBOL on each class*/ 54 "-fvisibility=default", 55 ], 56 header_libs: ["libbluetooth_headers"], 57 srcs: [ 58 "android/bluetooth/IBluetooth.aidl", 59 "android/bluetooth/IBluetoothA2dpSink.aidl", 60 "android/bluetooth/IBluetoothA2dpSinkCallback.aidl", 61 "android/bluetooth/IBluetoothA2dpSource.aidl", 62 "android/bluetooth/IBluetoothA2dpSourceCallback.aidl", 63 "android/bluetooth/IBluetoothAvrcpControl.aidl", 64 "android/bluetooth/IBluetoothAvrcpControlCallback.aidl", 65 "android/bluetooth/IBluetoothAvrcpTarget.aidl", 66 "android/bluetooth/IBluetoothAvrcpTargetCallback.aidl", 67 "android/bluetooth/IBluetoothCallback.aidl", 68 "android/bluetooth/IBluetoothGattClient.aidl", 69 "android/bluetooth/IBluetoothGattClientCallback.aidl", 70 "android/bluetooth/IBluetoothGattServer.aidl", 71 "android/bluetooth/IBluetoothGattServerCallback.aidl", 72 "android/bluetooth/IBluetoothLeAdvertiser.aidl", 73 "android/bluetooth/IBluetoothLeAdvertiserCallback.aidl", 74 "android/bluetooth/IBluetoothLeScanner.aidl", 75 "android/bluetooth/IBluetoothLeScannerCallback.aidl", 76 "android/bluetooth/IBluetoothLowEnergy.aidl", 77 "android/bluetooth/IBluetoothLowEnergyCallback.aidl", 78 "android/bluetooth/advertise_data.cc", 79 "android/bluetooth/advertise_settings.cc", 80 "android/bluetooth/bluetooth_a2dp_codec_config.cc", 81 "android/bluetooth/bluetooth_avrcp_int_value.cc", 82 "android/bluetooth/bluetooth_avrcp_media_attr.cc", 83 "android/bluetooth/bluetooth_avrcp_register_notification_response.cc", 84 "android/bluetooth/bluetooth_avrcp_string_value.cc", 85 "android/bluetooth/bluetooth_gatt_characteristic.cc", 86 "android/bluetooth/bluetooth_gatt_descriptor.cc", 87 "android/bluetooth/bluetooth_gatt_included_service.cc", 88 "android/bluetooth/bluetooth_gatt_service.cc", 89 "android/bluetooth/bluetooth_remote_device_props.cc", 90 "android/bluetooth/scan_filter.cc", 91 "android/bluetooth/scan_result.cc", 92 "android/bluetooth/scan_settings.cc", 93 "android/bluetooth/uuid.cc", 94 ], 95 aidl: { 96 export_aidl_headers: true, 97 include_dirs: [ 98 "frameworks/native/aidl/binder", 99 "packages/modules/Bluetooth/system/service/common", 100 ], 101 }, 102 export_include_dirs: ["./"], 103 whole_static_libs: ["libbluetooth-common"], 104 shared_libs: [ 105 "libbase", 106 "libbinder", 107 ], 108 static_libs: [ 109 "libbluetooth-types", 110 ], 111} 112