1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "system_bt_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["system_bt_license"], 8} 9 10cc_defaults { 11 name: "audio_hearing_aid_hw_defaults", 12 defaults: ["bluetooth_cflags"], 13 shared_libs: ["libchrome"], 14 include_dirs: [ 15 "packages/modules/Bluetooth/system", 16 "packages/modules/Bluetooth/system/gd", 17 "packages/modules/Bluetooth/system/include", 18 "packages/modules/Bluetooth/system/types", 19 ], 20} 21 22// Audio A2DP shared library for target 23cc_library { 24 name: "audio.hearing_aid.default", 25 defaults: ["audio_hearing_aid_hw_defaults"], 26 relative_install_path: "hw", 27 srcs: [ 28 "src/audio_hearing_aid_hw.cc", 29 "src/audio_hearing_aid_hw_utils.cc", 30 ], 31 apex_available: [ 32 "com.android.btservices", 33 ], 34 shared_libs: [ 35 "libbase", 36 "liblog", 37 ], 38 static_libs: [ 39 "libbluetooth_log", 40 "libosi", 41 ], 42} 43 44// Audio A2DP library unit tests for target and host 45cc_test { 46 name: "net_test_audio_hearing_aid_hw", 47 test_suites: ["general-tests"], 48 defaults: [ 49 "audio_hearing_aid_hw_defaults", 50 "mts_defaults", 51 ], 52 srcs: [ 53 "test/audio_hearing_aid_hw_test.cc", 54 ], 55 shared_libs: [ 56 "libbase", 57 "liblog", 58 ], 59 static_libs: [ 60 "audio.hearing_aid.default", 61 "libbluetooth_log", 62 "libosi", 63 ], 64 min_sdk_version: "29", 65} 66