• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    vndk: {
29        enabled: true,
30    },
31    host_supported: true,
32    arch: {
33        arm: {
34            instruction_set: "arm",
35        },
36    },
37    export_include_dirs: ["inc"],
38    srcs: [
39        "src/ldaclib.c",
40        "src/ldacBT.c",
41    ],
42    // -D_32BIT_FIXED_POINT should be added to cflags for devices without a FPU
43    // unit such as ARM Cortex-R series or external 32-bit DSPs.
44    cflags: ["-O2", "-Werror", "-Wall", "-Wextra"],
45    min_sdk_version: "Tiramisu",
46    apex_available: [
47        "//apex_available:platform",
48        "com.android.btservices",
49    ],
50    visibility: [
51        "//external/libldac/fuzzer",
52        "//external/oss-fuzz",
53        "//packages/modules/Bluetooth:__subpackages__",
54        "//packages/modules/vndk/apex",
55    ],
56}
57
58cc_library {
59    name: "libldacBT_abr",
60    vendor_available: true,
61    product_available: true,
62    vndk: {
63        enabled: true,
64    },
65    host_supported: true,
66    arch: {
67        arm: {
68            instruction_set: "arm",
69        },
70    },
71    export_include_dirs: ["abr/inc"],
72    srcs: ["abr/src/ldacBT_abr.c"],
73    static_libs: ["libldacBT_enc"],
74    cflags: ["-O2", "-Werror", "-Wall", "-Wextra"],
75    min_sdk_version: "Tiramisu",
76    apex_available: [
77        "//apex_available:platform",
78        "com.android.btservices",
79    ],
80    visibility: [
81        "//packages/modules/Bluetooth:__subpackages__",
82        "//packages/modules/vndk/apex",
83    ],
84}
85