Files
hardware_interfaces/bluetooth/audio/utils/Android.bp
Shunkai Yao 95732c6cb9 Add defaults for audio AIDL interfaces
- with defaults user don't have to change their Android.bp when there is
  a update
- update AIDL audio interfaces with android.media.audio.common.types
- update Spatialization and HeadTracking AIDL usage

Bug: 273373363
Bug: 293370815
Test: m
Test: lunch panther-trunk_staging-userdebug; m; test Bluetooth Audio
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1977a4a664cc71e1d9841a01573b63793f88ae59)
Merged-In: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
Change-Id: Ic9d8afc1d4e19e4243c66065b0a5d29156632851
2023-11-07 18:18:24 +00:00

101 lines
2.9 KiB
Plaintext

package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "hardware_interfaces_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["hardware_interfaces_license"],
}
cc_library_shared {
name: "libbluetooth_audio_session",
defaults: ["hidl_defaults"],
vendor: true,
srcs: [
"session/BluetoothAudioSession.cpp",
"session/BluetoothAudioSession_2_1.cpp",
"session/BluetoothAudioSupportedCodecsDB.cpp",
"session/BluetoothAudioSupportedCodecsDB_2_1.cpp",
],
export_include_dirs: ["session/"],
header_libs: ["libhardware_headers"],
shared_libs: [
"android.hardware.audio.common@5.0",
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libbase",
"libcutils",
"libfmq",
"libhidlbase",
"liblog",
"libutils",
"libbluetooth_audio_session_aidl",
],
}
cc_library_shared {
name: "libbluetooth_audio_session_aidl",
vendor: true,
host_supported: true,
srcs: [
"aidl_session/BluetoothAudioCodecs.cpp",
"aidl_session/BluetoothAudioSession.cpp",
"aidl_session/HidlToAidlMiddleware.cpp",
"aidl_session/BluetoothLeAudioCodecsProvider.cpp",
],
export_include_dirs: ["aidl_session/"],
header_libs: [
"libhardware_headers",
"libxsdc-utils",
],
defaults: [
"latest_android_hardware_bluetooth_audio_ndk_shared",
],
shared_libs: [
"android.hardware.bluetooth.audio@2.0",
"android.hardware.bluetooth.audio@2.1",
"libbase",
"libcutils",
"libbinder_ndk",
"libfmq",
"liblog",
"libhidlbase",
"libxml2",
],
generated_sources: ["le_audio_codec_capabilities"],
generated_headers: ["le_audio_codec_capabilities"],
}
cc_test {
name: "BluetoothLeAudioCodecsProviderTest",
srcs: [
"aidl_session/BluetoothLeAudioCodecsProvider.cpp",
"aidl_session/BluetoothLeAudioCodecsProviderTest.cpp",
],
header_libs: [
"libxsdc-utils",
],
shared_libs: [
"libbase",
"libbinder_ndk",
"android.hardware.bluetooth.audio-V3-ndk",
"libxml2",
],
test_suites: [
"general-tests",
],
test_options: {
unit_test: false,
},
generated_sources: ["le_audio_codec_capabilities"],
generated_headers: ["le_audio_codec_capabilities"],
}
xsd_config {
name: "le_audio_codec_capabilities",
srcs: ["le_audio_codec_capabilities/le_audio_codec_capabilities.xsd"],
package_name: "aidl.android.hardware.bluetooth.audio.setting",
api_dir: "le_audio_codec_capabilities/schema",
root_elements: ["leAudioOffloadSetting"],
}