blob: 58647f2ffd3d62b2df3428ae15bfd6d995266025 [file] [log] [blame]
Steven Moreland1457c922017-04-27 16:31:05 -07001cc_binary {
2 name: "lmkd",
3
4 srcs: ["lmkd.c"],
5 shared_libs: [
6 "liblog",
Steven Moreland1457c922017-04-27 16:31:05 -07007 "libcutils",
8 ],
Rajeev Kumar70450032018-01-31 17:54:56 -08009 static_libs: [
10 "libstatslogc",
11 ],
Suren Baghdasaryan0f100512018-01-24 16:51:41 -080012 local_include_dirs: ["include"],
Daniel Colascione347f6b42018-02-12 11:24:47 -080013 cflags: ["-Werror", "-DLMKD_TRACE_KILLS"],
Steven Moreland1457c922017-04-27 16:31:05 -070014 init_rc: ["lmkd.rc"],
Rajeev Kumarb7273782018-03-09 18:29:44 -080015 product_variables: {
16 use_lmkd_stats_log: {
17 cflags: [
18 "-DLMKD_LOG_STATS"
19 ],
20 },
21 },
Steven Moreland1457c922017-04-27 16:31:05 -070022}
Rajeev Kumarf0216a82018-01-24 14:40:36 -080023
Rajeev Kumar70450032018-01-31 17:54:56 -080024cc_library_static {
Rajeev Kumarf0216a82018-01-24 14:40:36 -080025 name: "libstatslogc",
26 srcs: ["statslog.c"],
27 cflags: [
28 "-Wall",
29 "-Werror",
30 ],
31 shared_libs: [
32 "liblog",
33 ],
34}
Suren Baghdasaryan0f100512018-01-24 16:51:41 -080035
36cc_library_static {
37 name: "liblmkd_utils",
38 srcs: ["liblmkd_utils.c"],
39 shared_libs: [
40 "libcutils",
41 ],
42 export_include_dirs: ["include"],
43 cppflags: [
44 "-g",
45 "-Wall",
46 "-Werror",
47 ]
48}