summaryrefslogtreecommitdiff
path: root/cmds/service/Android.bp
diff options
context:
space:
mode:
author Yifan Hong <elsk@google.com> 2021-06-16 22:56:50 -0700
committer Yifan Hong <elsk@google.com> 2021-10-11 16:43:40 -0700
commit86cf053ec0e9df426f2ab52f1fb037963697e8f7 (patch)
tree50e8d419e49817280a5974cfacf052e5375a3805 /cmds/service/Android.bp
parent5a05ef704e0f27e57af08695e01d8486f7f89af6 (diff)
Compile the utility `service` on host as `aservice`
... and run it. It is not named `service` on host to avoid collision with service(8). fds don't work yet because of b/185909244. Test: aservice list # doesn't work well because of Java support b/190450693 and # single-threaded service support b/191059588 Test: aservice call manager 4 i32 15 # listServices Test: aservice call manager 7 s16 android.hardware.light.ILights/default # isDelcared Fixes: 190868305 Change-Id: I71b563ca0229164c2d96f8dba5a98107ed9f1e48
Diffstat (limited to 'cmds/service/Android.bp')
-rw-r--r--cmds/service/Android.bp18
1 files changed, 18 insertions, 0 deletions
diff --git a/cmds/service/Android.bp b/cmds/service/Android.bp
index 3e8e3f67f8..21ac11b4cf 100644
--- a/cmds/service/Android.bp
+++ b/cmds/service/Android.bp
@@ -52,3 +52,21 @@ cc_binary {
"-Werror",
],
}
+
+cc_binary_host {
+ name: "aservice",
+
+ srcs: ["service.cpp"],
+
+ shared_libs: [
+ "libcutils",
+ "libutils",
+ "libbinder",
+ ],
+
+ cflags: [
+ "-DXP_UNIX",
+ "-Wall",
+ "-Werror",
+ ],
+}