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_library_static { 11 name: "libbt-audio-asrc", 12 defaults: [], 13 srcs: [ 14 "asrc/asrc_resampler.cc", 15 "asrc/asrc_tables.cc", 16 ], 17 include_dirs: [ 18 "packages/modules/Bluetooth/system", 19 "packages/modules/Bluetooth/system/bta/include", 20 "packages/modules/Bluetooth/system/btif/avrcp", 21 "packages/modules/Bluetooth/system/gd", 22 "packages/modules/Bluetooth/system/stack/btm", 23 "packages/modules/Bluetooth/system/stack/include", 24 "packages/modules/Bluetooth/system/udrv/include", 25 ], 26 header_libs: [ 27 "libbluetooth_headers", 28 ], 29 shared_libs: [ 30 "libaconfig_storage_read_api_cc", 31 "libchrome", 32 "liblog", 33 "server_configurable_flags", 34 ], 35 static_libs: [ 36 "bluetooth_flags_c_lib", 37 "libbase", 38 "libbluetooth_hci_pdl", 39 "libbluetooth_log", 40 "libbt_shim_bridge", 41 "libflatbuffers-cpp", 42 ], 43 host_supported: true, 44 min_sdk_version: "33", 45 apex_available: [ 46 "com.android.btservices", 47 ], 48} 49 50cc_library_host_shared { 51 name: "libasrc_resampler_test", 52 defaults: ["bluetooth_cflags"], 53 srcs: [ 54 ":TestMockMainShimEntry", 55 "asrc/asrc_resampler_test.cc", 56 "asrc/asrc_tables.cc", 57 ], 58 include_dirs: [ 59 "packages/modules/Bluetooth/system", 60 "packages/modules/Bluetooth/system/bta/include", 61 "packages/modules/Bluetooth/system/btif/avrcp", 62 "packages/modules/Bluetooth/system/gd", 63 "packages/modules/Bluetooth/system/stack/btm", 64 "packages/modules/Bluetooth/system/stack/include", 65 "packages/modules/Bluetooth/system/udrv/include", 66 ], 67 header_libs: [ 68 "libbluetooth_headers", 69 ], 70 shared_libs: [ 71 "libaconfig_storage_read_api_cc", 72 "server_configurable_flags", 73 ], 74 static_libs: [ 75 "bluetooth_flags_c_lib", 76 "libbase", 77 "libbluetooth_hci_pdl", 78 "libbluetooth_log", 79 "libbt-common", 80 "libbt_shim_bridge", 81 "libchrome", 82 "libevent", 83 "libflatbuffers-cpp", 84 "libgmock", 85 "liblog", 86 ], 87 stl: "libc++_static", 88 generated_headers: [ 89 "BluetoothGeneratedDumpsysDataSchema_h", 90 ], 91} 92 93python_test_host { 94 name: "asrc_resampler_test", 95 main: "asrc/asrc_resampler_test.py", 96 srcs: ["asrc/asrc_resampler_test.py"], 97 libs: ["mobly"], 98 data: [":libasrc_resampler_test"], 99 test_config: "asrc/asrc_resampler_test.config", 100 test_suites: ["general-tests"], 101 test_options: { 102 unit_test: false, 103 }, 104} 105