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 ], 19} 20 21// Audio A2DP shared library for target 22cc_library { 23 name: "audio.hearing_aid.default", 24 defaults: ["audio_hearing_aid_hw_defaults"], 25 relative_install_path: "hw", 26 srcs: [ 27 "src/audio_hearing_aid_hw.cc", 28 "src/audio_hearing_aid_hw_utils.cc", 29 ], 30 apex_available: [ 31 "com.android.btservices", 32 ], 33 shared_libs: [ 34 "libbase", 35 "liblog", 36 ], 37 static_libs: [ 38 "libbluetooth_log", 39 "libosi", 40 ], 41} 42 43// Audio A2DP library unit tests for target and host 44cc_test { 45 name: "net_test_audio_hearing_aid_hw", 46 test_suites: ["general-tests"], 47 defaults: [ 48 "audio_hearing_aid_hw_defaults", 49 "mts_defaults", 50 ], 51 srcs: [ 52 "test/audio_hearing_aid_hw_test.cc", 53 ], 54 shared_libs: [ 55 "libbase", 56 "liblog", 57 ], 58 static_libs: [ 59 "audio.hearing_aid.default", 60 "libbluetooth_log", 61 "libcom.android.sysprop.bluetooth.wrapped", 62 "libosi", 63 ], 64 min_sdk_version: "29", 65} 66