xref: /aosp_15_r20/external/libldac/Android.bp (revision aef9bcd9217ad2365ebc8e70efaf94b64e04df14)
1package {
2    default_applicable_licenses: ["external_libldac_license"],
3}
4
5// Added automatically by a large-scale-change
6//
7// large-scale-change included anything that looked like it might be a license
8// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
9//
10// Please consider removing redundant or irrelevant files from 'license_text:'.
11// See: http://go/android-license-faq
12license {
13    name: "external_libldac_license",
14    visibility: [":__subpackages__"],
15    license_kinds: [
16        "SPDX-license-identifier-Apache-2.0",
17    ],
18    license_text: [
19        "LICENSE",
20        "NOTICE",
21    ],
22}
23
24cc_library {
25    name: "libldacBT_enc",
26    vendor_available: true,
27    product_available: true,
28    host_supported: true,
29    arch: {
30        arm: {
31            instruction_set: "arm",
32        },
33    },
34    export_include_dirs: ["inc"],
35    srcs: [
36        "src/ldaclib.c",
37        "src/ldacBT.c",
38    ],
39    // -D_32BIT_FIXED_POINT should be added to cflags for devices without a FPU
40    // unit such as ARM Cortex-R series or external 32-bit DSPs.
41    cflags: ["-O2", "-Werror", "-Wall", "-Wextra"],
42    min_sdk_version: "Tiramisu",
43    apex_available: [
44        "//apex_available:platform",
45        "com.android.btservices",
46    ],
47    visibility: [
48        "//external/libldac/fuzzer",
49        "//external/oss-fuzz",
50        "//packages/modules/Bluetooth:__subpackages__",
51        "//packages/modules/vndk/apex",
52    ],
53}
54
55cc_library {
56    name: "libldacBT_abr",
57    vendor_available: true,
58    product_available: true,
59    host_supported: true,
60    arch: {
61        arm: {
62            instruction_set: "arm",
63        },
64    },
65    export_include_dirs: ["abr/inc"],
66    srcs: ["abr/src/ldacBT_abr.c"],
67    static_libs: ["libldacBT_enc"],
68    cflags: ["-O2", "-Werror", "-Wall", "-Wextra"],
69    min_sdk_version: "Tiramisu",
70    apex_available: [
71        "//apex_available:platform",
72        "com.android.btservices",
73    ],
74    visibility: [
75        "//packages/modules/Bluetooth:__subpackages__",
76        "//packages/modules/vndk/apex",
77    ],
78}
79