2018-12-05 12:53:07 +01:00
|
|
|
cc_library {
|
2017-04-25 02:15:31 +02:00
|
|
|
name: "libsysutils",
|
2017-05-16 23:53:23 +02:00
|
|
|
vendor_available: true,
|
2017-07-24 08:19:45 +02:00
|
|
|
vndk: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2017-05-16 23:53:23 +02:00
|
|
|
|
2017-04-25 02:15:31 +02:00
|
|
|
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"],
|
2019-04-10 16:04:41 +02:00
|
|
|
|
|
|
|
tidy: true,
|
|
|
|
tidy_checks: [
|
|
|
|
"-*",
|
|
|
|
"cert-*",
|
|
|
|
"clang-analyzer-security*",
|
|
|
|
"android-*",
|
|
|
|
],
|
|
|
|
tidy_checks_as_errors: [
|
|
|
|
"cert-*",
|
|
|
|
"clang-analyzer-security*",
|
|
|
|
"android-*",
|
|
|
|
],
|
2017-04-25 02:15:31 +02:00
|
|
|
}
|
2018-06-05 15:32:34 +02:00
|
|
|
|
|
|
|
cc_test {
|
|
|
|
name: "libsysutils_tests",
|
|
|
|
test_suites: ["device-tests"],
|
|
|
|
srcs: [
|
|
|
|
"src/SocketListener_test.cpp",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
"libbase",
|
|
|
|
"libcutils",
|
|
|
|
"libsysutils",
|
|
|
|
],
|
|
|
|
}
|