liblog: fix build again
log_read.c has to be in the target sources on all platforms, but
never needs to be in the host sources.
(cherry picked from commit 3c37fae4a472835c8e20060e1e6b7495b84f254a)
Change-Id: Ie0829f3f1daf16d151c401653dbef603b1c2f59d
diff --git a/liblog/Android.mk b/liblog/Android.mk
index e96f23a..78ff1ed 100644
--- a/liblog/Android.mk
+++ b/liblog/Android.mk
@@ -36,17 +36,13 @@
liblog_sources += \
logprint.c \
event_tag_map.c
-ifneq ($(HOST_OS),darwin)
- liblog_sources += \
- log_read.c
-endif
else
liblog_sources += \
uio.c
endif
liblog_host_sources := $(liblog_sources) fake_log_device.c
-
+liblog_target_sources = $(liblog_sources) log_read.c
# Shared and static library for host
# ========================================================
@@ -76,7 +72,7 @@
# ========================================================
include $(CLEAR_VARS)
LOCAL_MODULE := liblog
-LOCAL_SRC_FILES := $(liblog_sources)
+LOCAL_SRC_FILES := $(liblog_target_sources)
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)