blob: 1b421089d77888f303c36f0ee8d23b895110f4ac [file] [log] [blame] [edit]
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "system_bt_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["system_bt_license"],
}
tidy_errors = [
"*",
"-altera-struct-pack-align",
"-altera-unroll-loops",
"-bugprone-narrowing-conversions",
"-cppcoreguidelines-avoid-magic-numbers",
"-cppcoreguidelines-init-variables",
"-cppcoreguidelines-narrowing-conversions",
"-hicpp-signed-bitwise",
"-llvm-header-guard",
"-readability-avoid-const-params-in-decls",
"-readability-identifier-length",
"-readability-magic-numbers",
]
cc_library_static {
name: "libaptx_enc",
host_supported: true,
export_include_dirs: ["include"],
srcs: [
"src/ProcessSubband.c",
"src/QmfConv.c",
"src/QuantiseDifference.c",
"src/aptXbtenc.c",
],
cflags: [
"-O2",
"-Wall",
"-Werror",
"-Wextra",
],
tidy: true,
tidy_checks: tidy_errors,
tidy_checks_as_errors: tidy_errors,
min_sdk_version: "Tiramisu",
apex_available: ["com.android.bt"],
visibility: [
"//packages/modules/Bluetooth:__subpackages__",
],
}