2017-04-27 23:31:05 +00:00
|
|
|
cc_binary {
|
|
|
|
name: "lmkd",
|
|
|
|
|
|
|
|
srcs: ["lmkd.c"],
|
|
|
|
shared_libs: [
|
|
|
|
"libcutils",
|
2018-03-21 19:24:58 +00:00
|
|
|
"liblog",
|
2017-04-27 23:31:05 +00:00
|
|
|
],
|
2018-02-01 01:54:56 +00:00
|
|
|
static_libs: [
|
|
|
|
"libstatslogc",
|
2018-05-02 18:19:27 +00:00
|
|
|
"libstatssocket",
|
2018-02-01 01:54:56 +00:00
|
|
|
],
|
2018-01-25 00:51:41 +00:00
|
|
|
local_include_dirs: ["include"],
|
2018-02-12 19:24:47 +00:00
|
|
|
cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
|
2017-04-27 23:31:05 +00:00
|
|
|
init_rc: ["lmkd.rc"],
|
2018-03-10 02:29:44 +00:00
|
|
|
product_variables: {
|
|
|
|
use_lmkd_stats_log: {
|
|
|
|
cflags: [
|
|
|
|
"-DLMKD_LOG_STATS"
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2018-07-26 23:34:27 +00:00
|
|
|
logtags: ["event.logtags"],
|
2017-04-27 23:31:05 +00:00
|
|
|
}
|
2018-01-24 22:40:36 +00:00
|
|
|
|
2018-02-01 01:54:56 +00:00
|
|
|
cc_library_static {
|
2018-01-24 22:40:36 +00:00
|
|
|
name: "libstatslogc",
|
|
|
|
srcs: ["statslog.c"],
|
|
|
|
cflags: [
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
],
|
|
|
|
shared_libs: [
|
|
|
|
"liblog",
|
|
|
|
],
|
2018-05-02 18:19:27 +00:00
|
|
|
static_libs: ["libstatssocket",],
|
2018-01-24 22:40:36 +00:00
|
|
|
}
|
2018-01-25 00:51:41 +00:00
|
|
|
|
|
|
|
cc_library_static {
|
|
|
|
name: "liblmkd_utils",
|
|
|
|
srcs: ["liblmkd_utils.c"],
|
|
|
|
shared_libs: [
|
|
|
|
"libcutils",
|
|
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
cppflags: [
|
|
|
|
"-g",
|
|
|
|
"-Wall",
|
|
|
|
"-Werror",
|
|
|
|
]
|
|
|
|
}
|