1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5cc_defaults { 6 name: "stats_defaults", 7 cflags: [ 8 "-DLMKD_LOG_STATS" 9 ], 10} 11 12cc_binary { 13 name: "lmkd", 14 15 srcs: ["lmkd.cpp"], 16 shared_libs: [ 17 "libcutils", 18 "liblog", 19 "libprocessgroup", 20 "libpsi", 21 ], 22 static_libs: [ 23 "libstatslogc", 24 "liblmkd_utils", 25 ], 26 header_libs: [ 27 "bpf_syscall_wrappers", 28 ], 29 local_include_dirs: ["include"], 30 cflags: [ 31 "-Wall", 32 "-Werror", 33 "-Wextra", 34 "-DLMKD_TRACE_KILLS" 35 ], 36 init_rc: ["lmkd.rc"], 37 defaults: ["stats_defaults"], 38 logtags: ["event.logtags"], 39} 40 41cc_library_static { 42 name: "libstatslogc", 43 srcs: ["statslog.cpp"], 44 local_include_dirs: ["include"], 45 cflags: [ 46 "-Wall", 47 "-Werror", 48 "-Wextra", 49 ], 50 defaults: ["stats_defaults"], 51 shared_libs: [ 52 "liblog", 53 ], 54} 55 56cc_library_static { 57 name: "liblmkd_utils", 58 srcs: ["liblmkd_utils.cpp"], 59 recovery_available: true, 60 shared_libs: [ 61 "libcutils", 62 ], 63 export_include_dirs: ["include"], 64 cppflags: [ 65 "-g", 66 "-Wall", 67 "-Werror", 68 ] 69} 70