android_system_core/lmkd/Android.bp
Suren Baghdasaryan a92de71a51 lmkd: Introduce liblmkd_utils for communicating with lmkd process
(cherry pick from commit 0f10051805)

A number of tools and tests require communication with lmkd.
In order to avoid code duplication liblmkd_utils implements
functions commonly used when interacting with lmkd process.
Isolate communication protocol details into lmkd.h

Bug: 63631020

Change-Id: Id840983d55b7db60013d52dee0c3187943811822
Merged-In: Id840983d55b7db60013d52dee0c3187943811822
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2018-03-09 11:18:53 -08:00

35 lines
587 B
Text

cc_binary {
name: "lmkd",
srcs: ["lmkd.c"],
shared_libs: [
"liblog",
"libcutils",
],
local_include_dirs: ["include"],
cflags: ["-Werror"],
init_rc: ["lmkd.rc"],
product_variables: {
debuggable: {
cflags: [
"-DLMKD_TRACE_KILLS"
],
},
},
}
cc_library_static {
name: "liblmkd_utils",
srcs: ["liblmkd_utils.c"],
shared_libs: [
"libcutils",
],
export_include_dirs: ["include"],
cppflags: [
"-g",
"-Wall",
"-Werror",
]
}