• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "libflatbuffers-cpp",
41    ],
42    host_supported: true,
43    min_sdk_version: "33",
44    apex_available: ["com.android.bt"],
45}
46
47cc_library_host_shared {
48    name: "libasrc_resampler_test",
49    defaults: ["bluetooth_cflags"],
50    srcs: [
51        ":TestMockMainShimEntry",
52        "asrc/asrc_resampler_test.cc",
53        "asrc/asrc_tables.cc",
54    ],
55    include_dirs: [
56        "packages/modules/Bluetooth/system",
57        "packages/modules/Bluetooth/system/bta/include",
58        "packages/modules/Bluetooth/system/btif/avrcp",
59        "packages/modules/Bluetooth/system/gd",
60        "packages/modules/Bluetooth/system/stack/btm",
61        "packages/modules/Bluetooth/system/stack/include",
62        "packages/modules/Bluetooth/system/udrv/include",
63    ],
64    header_libs: [
65        "libbluetooth_headers",
66    ],
67    shared_libs: [
68        "libaconfig_storage_read_api_cc",
69        "server_configurable_flags",
70    ],
71    static_libs: [
72        "bluetooth_flags_c_lib",
73        "libbase",
74        "libbluetooth_hci_pdl",
75        "libbluetooth_log",
76        "libbt-common",
77        "libchrome",
78        "libevent",
79        "libflatbuffers-cpp",
80        "libgmock",
81        "liblog",
82    ],
83    stl: "libc++_static",
84}
85
86python_test_host {
87    name: "asrc_resampler_test",
88    main: "asrc/asrc_resampler_test.py",
89    srcs: ["asrc/asrc_resampler_test.py"],
90    libs: ["mobly"],
91    data: [":libasrc_resampler_test"],
92    test_config: "asrc/asrc_resampler_test.config",
93    test_suites: ["general-tests"],
94    test_options: {
95        unit_test: false,
96    },
97}
98