Bob Badour | d69ad69 | 2021-02-16 19:02:14 -0800 | [diff] [blame] | 1 | package { |
| 2 | default_applicable_licenses: ["Android-Apache-2.0"], |
| 3 | } |
| 4 | |
Mike Yu | c987859 | 2018-12-05 20:53:07 +0900 | [diff] [blame] | 5 | cc_library { |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 6 | name: "libsysutils", |
Jayant Chowdhary | a1bdd24 | 2017-05-16 14:53:23 -0700 | [diff] [blame] | 7 | vendor_available: true, |
Justin Yun | 6a7e882 | 2017-07-24 15:19:45 +0900 | [diff] [blame] | 8 | vndk: { |
| 9 | enabled: true, |
| 10 | }, |
Jayant Chowdhary | a1bdd24 | 2017-05-16 14:53:23 -0700 | [diff] [blame] | 11 | |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 12 | 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 Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 30 | ], |
| 31 | |
| 32 | export_include_dirs: ["include"], |
Lorenzo Colitti | d0e4938 | 2019-04-10 23:04:41 +0900 | [diff] [blame] | 33 | |
| 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 Huang | 0c0b774 | 2020-02-14 10:27:17 -0800 | [diff] [blame] | 46 | apex_available: [ |
| 47 | "//apex_available:anyapex", |
| 48 | "//apex_available:platform", |
| 49 | ], |
Jooyung Han | 7ea0d74 | 2020-04-16 18:48:33 +0900 | [diff] [blame] | 50 | min_sdk_version: "apex_inherit", |
Steven Moreland | d0d759d | 2017-04-24 17:15:31 -0700 | [diff] [blame] | 51 | } |
Bernie Innocenti | 763ccaa | 2018-06-05 22:32:34 +0900 | [diff] [blame] | 52 | |
| 53 | cc_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 | } |