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_a2dp_hw_defaults", 12 defaults: ["bluetooth_cflags"], 13 shared_libs: ["libchrome"], 14 include_dirs: [ 15 "packages/modules/Bluetooth/system", 16 "packages/modules/Bluetooth/system/audio_a2dp_hw/include", 17 "packages/modules/Bluetooth/system/gd", 18 "packages/modules/Bluetooth/system/include", 19 "packages/modules/Bluetooth/system/types", 20 ], 21} 22 23// Audio A2DP shared library for target 24cc_library { 25 name: "audio.a2dp.default", 26 defaults: ["audio_a2dp_hw_defaults"], 27 relative_install_path: "hw", 28 srcs: [ 29 "src/audio_a2dp_hw.cc", 30 "src/audio_a2dp_hw_utils.cc", 31 ], 32 apex_available: [ 33 "com.android.btservices", 34 ], 35 shared_libs: [ 36 "libbase", 37 "libcutils", 38 "liblog", 39 ], 40 static_libs: [ 41 "libbluetooth_gd", 42 "libbluetooth_log", 43 "libosi", 44 ], 45} 46 47cc_library_static { 48 name: "libaudio-a2dp-hw-utils", 49 defaults: ["audio_a2dp_hw_defaults"], 50 srcs: [ 51 "src/audio_a2dp_hw_utils.cc", 52 ], 53 host_supported: true, 54 apex_available: [ 55 "com.android.btservices", 56 ], 57 static_libs: [ 58 "libbluetooth_log", 59 ], 60 min_sdk_version: "29", 61} 62 63// Audio A2DP library unit tests for target and host 64cc_test { 65 name: "net_test_audio_a2dp_hw", 66 test_suites: ["general-tests"], 67 defaults: [ 68 "audio_a2dp_hw_defaults", 69 "mts_defaults", 70 ], 71 srcs: [ 72 "test/audio_a2dp_hw_test.cc", 73 ], 74 shared_libs: [ 75 "liblog", 76 ], 77 static_libs: [ 78 "audio.a2dp.default", 79 "libbluetooth_log", 80 "libosi", 81 ], 82 min_sdk_version: "29", 83} 84