1// Bluetooth Audio library for target 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: "libbt-audio-hal-interface", 13 defaults: ["fluoride_defaults"], 14 include_dirs: [ 15 "packages/modules/Bluetooth/system", 16 "packages/modules/Bluetooth/system/gd", 17 "packages/modules/Bluetooth/system/bta/include", 18 "packages/modules/Bluetooth/system/bta/sys", 19 "packages/modules/Bluetooth/system/btif/include", 20 "packages/modules/Bluetooth/system/stack/include", 21 "packages/modules/Bluetooth/system/gd/rust/shim", 22 ], 23 shared_libs: [ 24 "android.hardware.bluetooth.audio@2.0", 25 "android.hardware.bluetooth.audio@2.1", 26 "libhidlbase", 27 ], 28 static_libs: [ 29 "libosi", 30 "libbt-common", 31 ], 32 target: { 33 android: { 34 shared_libs: [ 35 "libfmq", 36 "libbinder_ndk", 37 "android.hardware.bluetooth.audio-V2-ndk", 38 ], 39 srcs: [ 40 "aidl/a2dp_encoding_aidl.cc", 41 "aidl/bluetooth_audio_port_impl.cc", 42 "aidl/client_interface_aidl.cc", 43 "aidl/codec_status_aidl.cc", 44 "aidl/hearing_aid_software_encoding_aidl.cc", 45 "aidl/le_audio_software_aidl.cc", 46 "hidl/a2dp_encoding_hidl.cc", 47 "hidl/client_interface_hidl.cc", 48 "hidl/codec_status_hidl.cc", 49 "hidl/hearing_aid_software_encoding_hidl.cc", 50 "hidl/le_audio_software_hidl.cc", 51 "a2dp_encoding.cc", 52 "hearing_aid_software_encoding.cc", 53 "le_audio_software.cc", 54 "hal_version_manager.cc", 55 ], 56 }, 57 host: { 58 srcs: [ 59 "a2dp_encoding_host.cc", 60 "hearing_aid_software_encoding_host.cc", 61 "le_audio_software_host.cc", 62 "hal_version_manager_host.cc", 63 ], 64 }, 65 }, 66 host_supported: true, 67 cflags: [ 68 "-DBUILDCFG", 69 ], 70 apex_available: [ 71 "com.android.bluetooth", 72 ], 73 min_sdk_version: "Tiramisu" 74} 75 76// Bluetooth Audio client interface library unit tests for target and host 77cc_test { 78 name: "bluetooth-test-audio-hal-interface", 79 defaults: ["fluoride_defaults"], 80 include_dirs: [ 81 "packages/modules/Bluetooth/system", 82 "packages/modules/Bluetooth/system/gd", 83 "packages/modules/Bluetooth/system/stack/include", 84 ], 85 srcs: [ 86 "hidl/client_interface_hidl_unittest.cc", 87 ], 88 shared_libs: [ 89 "android.hardware.bluetooth.audio@2.0", 90 "android.hardware.bluetooth.audio@2.1", 91 "android.hardware.bluetooth.audio-V2-ndk", 92 "libbinder_ndk", 93 "libcutils", 94 "libfmq", 95 "libhidlbase", 96 "liblog", 97 "libutils", 98 ], 99 static_libs: [ 100 "libbt-audio-hal-interface", 101 "libbt-common", 102 ], 103 cflags: [ 104 "-DBUILDCFG", 105 ], 106} 107