blob: 86103cd6a3fb1868dbeb6b6038c0d2ab2d76510f [file] [log] [blame]
cc_defaults {
name: "sn100nfc_utils_defaults",
include_dirs: [
"system/nfc",
],
cflags: [
"-Wall",
"-Werror",
],
target: {
linux_glibc: {
cflags: ["-D_GNU_SOURCE"],
},
darwin: {
enabled: false,
},
},
}
cc_library_static {
name: "libsn100nfcutils",
defaults: ["sn100nfc_utils_defaults"],
export_include_dirs: ["include"],
host_supported: true,
srcs: [
"config.cc",
"ringbuffer.cc",
],
shared_libs: [
"libbase",
],
sanitize: {
cfi: true,
misc_undefined: ["signed-integer-overflow",
"unsigned-integer-overflow"],
},
}
cc_test {
name: "sn100nfc_test_utils",
defaults: ["sn100nfc_utils_defaults"],
test_suites: ["device-tests"],
host_supported: true,
srcs: [
"test/config_test.cc",
"test/ringbuffer_test.cc",
],
static_libs: [
"libsn100nfcutils",
"libgmock",
],
shared_libs: [
"libbase",
],
}
cc_fuzz {
name: "sn100nfc_utils_ringbuffer_fuzzer",
host_supported: true,
srcs: [
"test/ringbuffer_fuzzer/ringbuffer_fuzzer.cpp",
],
static_libs: [
"libsn100nfcutils",
],
corpus: [
"test/ringbuffer_fuzzer/corpus/*",
],
}