1// The format of the name is audio.<type>.<hardware/etc>.so 2 3package { 4 // See: http://go/android-license-faq 5 // A large-scale-change added 'default_applicable_licenses' to import 6 // all of the 'license_kinds' from "system_bt_license" 7 // to get the below license kinds: 8 // SPDX-license-identifier-Apache-2.0 9 default_applicable_licenses: ["system_bt_license"], 10} 11 12cc_defaults { 13 name: "audio_bluetooth_hw_defaults", 14 defaults: ["fluoride_common_options"], 15 cflags: [ 16 // suppress the warning in stream_apis.cc 17 "-Wno-sign-compare", 18 ], 19} 20 21cc_library_shared { 22 name: "audio.bluetooth.default", 23 defaults: ["audio_bluetooth_hw_defaults"], 24 relative_install_path: "hw", 25 proprietary: true, 26 srcs: [ 27 "audio_bluetooth_hw.cc", 28 "device_port_proxy.cc", 29 "device_port_proxy_hidl.cc", 30 "stream_apis.cc", 31 "utils.cc", 32 ], 33 header_libs: ["libhardware_headers"], 34 shared_libs: [ 35 "android.hardware.bluetooth.audio-V3-ndk", 36 "libaudioutils", 37 "libbase", 38 "libbinder_ndk", 39 "libbluetooth_audio_session_aidl", 40 "libcutils", 41 "libfmq", 42 "liblog", 43 "libutils", 44 // HIDL dependencies 45 "android.hardware.bluetooth.audio@2.0", 46 "android.hardware.bluetooth.audio@2.1", 47 "libbluetooth_audio_session", 48 "libhidlbase", 49 ], 50} 51 52cc_test { 53 name: "audio_bluetooth_hw_test", 54 defaults: ["audio_bluetooth_hw_defaults"], 55 srcs: [ 56 "utils.cc", 57 "utils_unittest.cc", 58 ], 59 shared_libs: [ 60 "libbase", 61 "libcutils", 62 "liblog", 63 "libutils", 64 ], 65} 66