blob: 5f472b2abd2cb32741fbadf482480241b1b3acd4 [file] [log] [blame]
Bob Badourd69ad692021-02-16 19:02:14 -08001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
Mike Yuc9878592018-12-05 20:53:07 +09005cc_library {
Steven Morelandd0d759d2017-04-24 17:15:31 -07006 name: "libsysutils",
Jayant Chowdharya1bdd242017-05-16 14:53:23 -07007 vendor_available: true,
Justin Yun6a7e8822017-07-24 15:19:45 +09008 vndk: {
9 enabled: true,
10 },
Jayant Chowdharya1bdd242017-05-16 14:53:23 -070011
Steven Morelandd0d759d2017-04-24 17:15:31 -070012 srcs: [
13 "src/SocketListener.cpp",
14 "src/FrameworkListener.cpp",
15 "src/NetlinkListener.cpp",
16 "src/NetlinkEvent.cpp",
17 "src/FrameworkCommand.cpp",
18 "src/SocketClient.cpp",
19 "src/ServiceManager.cpp",
20 ],
21
22 logtags: ["EventLogTags.logtags"],
23
24 cflags: ["-Werror"],
25
26 shared_libs: [
27 "libbase",
28 "libcutils",
29 "liblog",
Steven Morelandd0d759d2017-04-24 17:15:31 -070030 ],
31
32 export_include_dirs: ["include"],
Lorenzo Colittid0e49382019-04-10 23:04:41 +090033
34 tidy: true,
35 tidy_checks: [
36 "-*",
37 "cert-*",
38 "clang-analyzer-security*",
39 "android-*",
40 ],
41 tidy_checks_as_errors: [
42 "cert-*",
43 "clang-analyzer-security*",
44 "android-*",
45 ],
Jeffrey Huang0c0b7742020-02-14 10:27:17 -080046 apex_available: [
47 "//apex_available:anyapex",
48 "//apex_available:platform",
49 ],
Jooyung Han7ea0d742020-04-16 18:48:33 +090050 min_sdk_version: "apex_inherit",
Steven Morelandd0d759d2017-04-24 17:15:31 -070051}
Bernie Innocenti763ccaa2018-06-05 22:32:34 +090052
53cc_test {
54 name: "libsysutils_tests",
55 test_suites: ["device-tests"],
56 srcs: [
57 "src/SocketListener_test.cpp",
58 ],
59 shared_libs: [
60 "libbase",
61 "libcutils",
62 "libsysutils",
63 ],
64}