blob: 627f0d4e1ba9479bf1f2b6edad0793c875c9cea8 [file] [log] [blame]
Mike Yuc9878592018-12-05 20:53:07 +09001cc_library {
Steven Morelandd0d759d2017-04-24 17:15:31 -07002 name: "libsysutils",
Jayant Chowdharya1bdd242017-05-16 14:53:23 -07003 vendor_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +09004 vndk: {
5 enabled: true,
6 },
Jayant Chowdharya1bdd242017-05-16 14:53:23 -07007
Steven Morelandd0d759d2017-04-24 17:15:31 -07008 srcs: [
9 "src/SocketListener.cpp",
10 "src/FrameworkListener.cpp",
11 "src/NetlinkListener.cpp",
12 "src/NetlinkEvent.cpp",
13 "src/FrameworkCommand.cpp",
14 "src/SocketClient.cpp",
15 "src/ServiceManager.cpp",
16 ],
17
18 logtags: ["EventLogTags.logtags"],
19
20 cflags: ["-Werror"],
21
22 shared_libs: [
23 "libbase",
24 "libcutils",
25 "liblog",
Steven Morelandd0d759d2017-04-24 17:15:31 -070026 ],
27
28 export_include_dirs: ["include"],
Lorenzo Colittid0e49382019-04-10 23:04:41 +090029
30 tidy: true,
31 tidy_checks: [
32 "-*",
33 "cert-*",
34 "clang-analyzer-security*",
35 "android-*",
36 ],
37 tidy_checks_as_errors: [
38 "cert-*",
39 "clang-analyzer-security*",
40 "android-*",
41 ],
Jeffrey Huang0c0b7742020-02-14 10:27:17 -080042 apex_available: [
43 "//apex_available:anyapex",
44 "//apex_available:platform",
45 ],
Steven Morelandd0d759d2017-04-24 17:15:31 -070046}
Bernie Innocenti763ccaa2018-06-05 22:32:34 +090047
48cc_test {
49 name: "libsysutils_tests",
50 test_suites: ["device-tests"],
51 srcs: [
52 "src/SocketListener_test.cpp",
53 ],
54 shared_libs: [
55 "libbase",
56 "libcutils",
57 "libsysutils",
58 ],
59}