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
10tidy_errors = [
11    "*",
12    "-altera-struct-pack-align",
13    "-altera-unroll-loops",
14    "-bugprone-narrowing-conversions",
15    "-cppcoreguidelines-avoid-magic-numbers",
16    "-cppcoreguidelines-init-variables",
17    "-cppcoreguidelines-narrowing-conversions",
18    "-hicpp-signed-bitwise",
19    "-llvm-header-guard",
20    "-readability-avoid-const-params-in-decls",
21    "-readability-identifier-length",
22    "-readability-magic-numbers",
23]
24
25cc_library_static {
26    name: "libaptx_enc",
27    host_supported: true,
28    export_include_dirs: ["include"],
29    srcs: [
30        "src/ProcessSubband.c",
31        "src/QmfConv.c",
32        "src/QuantiseDifference.c",
33        "src/aptXbtenc.c",
34    ],
35    cflags: [
36        "-O2",
37        "-Wall",
38        "-Werror",
39        "-Wextra",
40    ],
41    tidy: true,
42    tidy_checks: tidy_errors,
43    tidy_checks_as_errors: tidy_errors,
44    min_sdk_version: "Tiramisu",
45    apex_available: [
46        "com.android.btservices",
47    ],
48    visibility: [
49        "//packages/modules/Bluetooth:__subpackages__",
50    ],
51}
52