1// Bluetooth SBC decoder static library for target
2package {
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "system_bt_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["system_bt_license"],
9}
10
11cc_library_static {
12    name: "libbt-sbc-decoder",
13    defaults: ["fluoride_defaults"],
14    srcs: [
15        "srce/alloc.c",
16        "srce/bitalloc-sbc.c",
17        "srce/bitalloc.c",
18        "srce/bitstream-decode.c",
19        "srce/decoder-oina.c",
20        "srce/decoder-private.c",
21        "srce/decoder-sbc.c",
22        "srce/dequant.c",
23        "srce/framing-sbc.c",
24        "srce/framing.c",
25        "srce/oi_codec_version.c",
26        "srce/synthesis-8-generated.c",
27        "srce/synthesis-dct8.c",
28        "srce/synthesis-sbc.c",
29    ],
30    local_include_dirs: [
31        "include",
32        "srce",
33    ],
34    host_supported: true,
35    apex_available: [
36        "com.android.btservices",
37    ],
38    min_sdk_version: "Tiramisu",
39}
40
41cc_fuzz {
42    name: "sbcdecoder_fuzzer",
43    srcs: [
44        "sbcdecoder_fuzzer.c",
45    ],
46    static_libs: [
47        "libbt-sbc-decoder",
48    ],
49    local_include_dirs: [
50        "include",
51    ],
52    host_supported: true,
53}
54