blob: 73c6a9275f5e1e7d70585233560c963c74fce395 [file] [log] [blame]
package {
default_applicable_licenses: ["external_libpalmrejection_license"],
}
license {
name: "external_libpalmrejection_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-BSD",
],
license_text: [
"LICENSE",
],
}
cc_library_static {
name: "libpalmrejection",
local_include_dirs: ["."],
export_include_dirs: ["."],
srcs: [
"ui/events/ozone/evdev/touch_evdev_types.cc",
"ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc",
"ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.cc",
"ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.cc",
"ui/events/ozone/evdev/touch_filter/palm_detection_filter.cc",
"ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_model.cc",
"ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_inference.cc",
],
visibility: [
"//frameworks/native/services/inputflinger:__subpackages__",
],
shared_libs: [
"libchrome",
],
cpp_std: "c++20",
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-Wthread-safety",
"-Wshadow",
"-Wshadow-field-in-constructor-modified",
"-Wshadow-uncaptured-local",
"-Wno-unused-parameter",
"-Wno-unneeded-internal-declaration",
],
sanitize: {
misc_undefined: ["bounds"],
},
}
cc_test {
name: "libpalmrejection_test",
srcs: [
"ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_unittest.cc",
"ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util_unittest.cc",
"chrome_to_android_compatibility_test_support.cc",
],
shared_libs: [
"libbase",
"libchrome",
],
static_libs: [
"libc++fs",
"libgmock",
"liblog",
"libpalmrejection",
],
cpp_std: "c++20",
cflags: [
"-Wall",
"-Wextra",
"-Werror",
"-Wthread-safety",
"-Wshadow",
"-Wshadow-field-in-constructor-modified",
"-Wshadow-uncaptured-local",
],
sanitize: {
misc_undefined: ["bounds"],
},
test_suites: ["device-tests"],
}