platform_system_core/libsysutils/Android.bp
Lorenzo Colitti d0e4938dfe Enable clang-tidy for libsysutils.
Enable the same warnings used elsewhere in the tree, and fix the
two warnings it found (two safe uses of strcpy and one use of
atoi).

Test: builds, boots
Test: atest libsysutils_tests
Test: atest --test-mapping system/netd
Change-Id: I8e5d04da20cc4127439ad9fbda0e4e64f0e671d3
2019-04-24 00:35:58 +09:00

55 lines
1 KiB
Text

cc_library {
name: "libsysutils",
vendor_available: true,
vndk: {
enabled: true,
},
srcs: [
"src/SocketListener.cpp",
"src/FrameworkListener.cpp",
"src/NetlinkListener.cpp",
"src/NetlinkEvent.cpp",
"src/FrameworkCommand.cpp",
"src/SocketClient.cpp",
"src/ServiceManager.cpp",
],
logtags: ["EventLogTags.logtags"],
cflags: ["-Werror"],
shared_libs: [
"libbase",
"libcutils",
"liblog",
],
export_include_dirs: ["include"],
tidy: true,
tidy_checks: [
"-*",
"cert-*",
"clang-analyzer-security*",
"android-*",
],
tidy_checks_as_errors: [
"cert-*",
"clang-analyzer-security*",
"android-*",
],
}
cc_test {
name: "libsysutils_tests",
test_suites: ["device-tests"],
srcs: [
"src/SocketListener_test.cpp",
],
shared_libs: [
"libbase",
"libcutils",
"libsysutils",
],
}