summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Xu <pengxu@google.com>2017-04-21 14:18:39 -0700
committerPeng Xu <pengxu@google.com>2017-04-21 15:26:09 -0700
commitcc2a92de7bc37ab4514a17e1d0c1f9b05c26f86e (patch)
treee68ba91e432e2fbd9e6dc8e8f3512117ca697a3e
parentbdfd220689f0af472b4d45989d43966e2889f488 (diff)
downloadlibhardware-cc2a92de7bc37ab4514a17e1d0c1f9b05c26f86e.tar.gz
Build dynamic sensor host test only for linux host
This fix a build breakage for mac. Bug: 37482951 Test: m checkbuild sdk_repo -j32 works Change-Id: I9d7f35abbaef6c830ba0f7e804451f98a128d887
-rw-r--r--modules/sensors/dynamic_sensor/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sensors/dynamic_sensor/Android.mk b/modules/sensors/dynamic_sensor/Android.mk
index 46085085..348542a8 100644
--- a/modules/sensors/dynamic_sensor/Android.mk
+++ b/modules/sensors/dynamic_sensor/Android.mk
@@ -88,6 +88,8 @@ include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := hidrawsensor_host_test
LOCAL_MODULE_TAGS := optional
+# host test is targeting linux host only
+LOCAL_MODULE_HOST_OS := linux
LOCAL_CFLAGS += $(COMMON_CFLAGS)
@@ -109,6 +111,8 @@ include $(BUILD_HOST_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_MODULE := hidrawdevice_host_test
LOCAL_MODULE_TAGS := optional
+# host test is targeting linux host only
+LOCAL_MODULE_HOST_OS := linux
LOCAL_CFLAGS += $(COMMON_CFLAGS)