From 0579114c332fbcb5190845ca9fb4ccac664a7b93 Mon Sep 17 00:00:00 2001 From: that Date: Sat, 10 Oct 2015 15:59:22 +0200 Subject: fix build in Android 4.4 (tested with Omni) Change-Id: I781928483585052741fe1396bd9b136e61ca6538 --- libpixelflinger/Android.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpixelflinger') diff --git a/libpixelflinger/Android.mk b/libpixelflinger/Android.mk index d464c7707..693a612a7 100644 --- a/libpixelflinger/Android.mk +++ b/libpixelflinger/Android.mk @@ -91,6 +91,9 @@ LOCAL_SRC_FILES_arm := $(PIXELFLINGER_SRC_FILES_arm) LOCAL_SRC_FILES_arm64 := $(PIXELFLINGER_SRC_FILES_arm64) LOCAL_SRC_FILES_x86 := $(PIXELFLINGER_SRC_FILES_x86) LOCAL_SRC_FILES_mips := $(PIXELFLINGER_SRC_FILES_mips) +ifneq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) + LOCAL_SRC_FILES += $(LOCAL_SRC_FILES_$(TARGET_ARCH)) +endif LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include LOCAL_C_INCLUDES += $(LOCAL_EXPORT_C_INCLUDE_DIRS) LOCAL_CFLAGS := $(PIXELFLINGER_CFLAGS) -- cgit v1.2.3