blob: acb92ae6e6dd90b023f8173af5e5761b5b1cdd07 [file] [log] [blame]
// Bluetooth Audio library for target
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_bt_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
}
cc_library_static {
name: "libbt-audio-hal-interface",
defaults: ["fluoride_defaults"],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/bta/include",
"packages/modules/Bluetooth/system/bta/sys",
"packages/modules/Bluetooth/system/btif/include",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
shared_libs: [
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libhidlbase",
"libutils",
],
static_libs: [
"libbt-common",
"libbt_shim_bridge",
"libosi",
],
target: {
android: {
shared_libs: [
"android.hardware.bluetooth.audio-V3-ndk",
"libbinder_ndk",
"libfmq",
],
srcs: [
"a2dp_encoding.cc",
"aidl/a2dp_encoding_aidl.cc",
"aidl/bluetooth_audio_port_impl.cc",
"aidl/client_interface_aidl.cc",
"aidl/codec_status_aidl.cc",
"aidl/hearing_aid_software_encoding_aidl.cc",
"aidl/le_audio_software_aidl.cc",
"hal_version_manager.cc",
"hearing_aid_software_encoding.cc",
"hidl/a2dp_encoding_hidl.cc",
"hidl/client_interface_hidl.cc",
"hidl/codec_status_hidl.cc",
"hidl/hearing_aid_software_encoding_hidl.cc",
"hidl/le_audio_software_hidl.cc",
"le_audio_software.cc",
],
},
host: {
srcs: [
"a2dp_encoding_host.cc",
"hal_version_manager_host.cc",
"hearing_aid_software_encoding_host.cc",
"le_audio_software_host.cc",
],
},
},
host_supported: true,
cflags: [
"-DBUILDCFG",
],
apex_available: [
"com.android.btservices",
],
min_sdk_version: "Tiramisu",
header_libs: ["libbluetooth_headers"],
}
// Bluetooth Audio client interface library unit tests for target and host
cc_test {
name: "bluetooth-test-audio-hal-interface",
defaults: ["fluoride_defaults"],
include_dirs: [
"packages/modules/Bluetooth/system",
"packages/modules/Bluetooth/system/gd",
"packages/modules/Bluetooth/system/stack/include",
],
srcs: [
"hidl/client_interface_hidl_unittest.cc",
],
shared_libs: [
"android.hardware.bluetooth.audio-V3-ndk",
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libbinder_ndk",
"libcutils",
"libfmq",
"libhidlbase",
"liblog",
"libutils",
],
static_libs: [
"libbt-audio-hal-interface",
"libbt-common",
"libbt_shim_bridge",
"libchrome",
],
cflags: [
"-DBUILDCFG",
],
header_libs: ["libbluetooth_headers"],
}