Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c37fae4 authored by Colin Cross's avatar Colin Cross
Browse files

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.

Change-Id: Ie0829f3f1daf16d151c401653dbef603b1c2f59d
parent c96a4488
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -36,17 +36,13 @@ ifndef WITH_MINGW
    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 $(BUILD_HOST_STATIC_LIBRARY)
# ========================================================
include $(CLEAR_VARS)
LOCAL_MODULE := liblog
LOCAL_SRC_FILES := $(liblog_sources)
LOCAL_SRC_FILES := $(liblog_target_sources)
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)