From df8bf839ca3b7ce9a0ac6f1b645f27bdbc8509e5 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Thu, 5 Dec 2013 19:07:08 +0100 Subject: remote-process: allow reading commands from stdin BZ: 154316 The remote-process utility was only able to send one command at a time. This patch adds a new usage: if the command is omitted, remote-process reads stdin and sends each line as commands. It stops whenever it encounters an error of any kind (internal or returned by the server). Example of the new usage: remote-process localhost 5000 < commands.txt Change-Id: I2478668807b5541544c5752e68e112c23c85af15 Signed-off-by: David Wagner --- remote-process/Android.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'remote-process/Android.mk') diff --git a/remote-process/Android.mk b/remote-process/Android.mk index 7cf3ba7..7d63eb5 100644 --- a/remote-process/Android.mk +++ b/remote-process/Android.mk @@ -19,6 +19,7 @@ common_c_includes := \ $(LOCAL_PATH)/../remote-processor/ common_shared_libraries := libremote-processor +common_static_libraries := libaudiocomms_naive_tokenizer ############################# # Target build @@ -38,6 +39,7 @@ LOCAL_C_INCLUDES += \ bionic/ LOCAL_SHARED_LIBRARIES := $(common_shared_libraries) libstlport +LOCAL_STATIC_LIBRARIES := $(common_static_libraries) include $(BUILD_EXECUTABLE) @@ -59,5 +61,6 @@ LOCAL_C_INCLUDES += \ LOCAL_SHARED_LIBRARIES := $(foreach shared_library, $(common_shared_libraries), \ $(shared_library)_host) +LOCAL_STATIC_LIBRARIES := $(common_static_libraries) include $(BUILD_HOST_EXECUTABLE) -- cgit v1.1