Mike Yu | c987859 | 2018-12-05 20:53:07 +0900 | [diff] [blame] | 1 | cc_library { |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 2 | name: "libsysutils", |
Jayant Chowdhary | a1bdd24 | 2017-05-16 14:53:23 -0700 | [diff] [blame] | 3 | vendor_available: true, |
Justin Yun | 6a7e882 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 4 | vndk: { |
| 5 | enabled: true, |
| 6 | }, |
Jayant Chowdhary | a1bdd24 | 2017-05-16 14:53:23 -0700 | [diff] [blame] | 7 | |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 8 | 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 Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 26 | ], |
| 27 | |
| 28 | export_include_dirs: ["include"], |
Lorenzo Colitti | d0e4938 | 2019-04-10 23:04:41 +0900 | [diff] [blame] | 29 | |
| 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 Huang | 0c0b774 | 2020-02-14 10:27:17 -0800 | [diff] [blame^] | 42 | apex_available: [ |
| 43 | "//apex_available:anyapex", |
| 44 | "//apex_available:platform", |
| 45 | ], |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 46 | } |
Bernie Innocenti | 763ccaa | 2018-06-05 22:32:34 +0900 | [diff] [blame] | 47 | |
| 48 | cc_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 | } |