summaryrefslogtreecommitdiffstats
path: root/lmkd/Android.bp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2018-01-24 16:51:41 -0800
committerSuren Baghdasaryan <surenb@google.com>2018-01-31 18:10:49 +0000
commit0f1005180513e880bf7c90a3f2c2bf1a36aa1406 (patch)
treef2626fd6a8d817765dce8346ff43d6015267195f /lmkd/Android.bp
parentbd73476dce4c7380908439d8b3d32c8c09d3c8da (diff)
downloadsystem_core-0f1005180513e880bf7c90a3f2c2bf1a36aa1406.tar.gz
system_core-0f1005180513e880bf7c90a3f2c2bf1a36aa1406.tar.bz2
system_core-0f1005180513e880bf7c90a3f2c2bf1a36aa1406.zip
lmkd: Introduce liblmkd_utils for communicating with lmkd process
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 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'lmkd/Android.bp')
-rw-r--r--lmkd/Android.bp15
1 files changed, 15 insertions, 0 deletions
diff --git a/lmkd/Android.bp b/lmkd/Android.bp
index e16db6570..fc3169316 100644
--- a/lmkd/Android.bp
+++ b/lmkd/Android.bp
@@ -6,6 +6,7 @@ cc_binary {
"liblog",
"libcutils",
],
+ local_include_dirs: ["include"],
cflags: ["-Werror"],
init_rc: ["lmkd.rc"],
@@ -30,3 +31,17 @@ cc_library_shared {
"liblog",
],
}
+
+cc_library_static {
+ name: "liblmkd_utils",
+ srcs: ["liblmkd_utils.c"],
+ shared_libs: [
+ "libcutils",
+ ],
+ export_include_dirs: ["include"],
+ cppflags: [
+ "-g",
+ "-Wall",
+ "-Werror",
+ ]
+}