From 73d8fca01e8166ab64558813d904a870ab8ab2e0 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 17 Jun 2014 23:30:20 -0700 Subject: [PATCH] Android.mk: add ENABLE_SHARED flag builds libwebp.so instead of libwebp.a $ ndk-build ENABLE_SHARED=1 Change-Id: Ide05e3be4f9848852e6d7e9d99abe11344419241 --- Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index b63e412e..469057f0 100644 --- a/Android.mk +++ b/Android.mk @@ -93,7 +93,11 @@ LOCAL_STATIC_LIBRARIES := cpufeatures LOCAL_MODULE := webp -include $(BUILD_STATIC_LIBRARY) +ifeq ($(ENABLE_SHARED),1) + include $(BUILD_SHARED_LIBRARY) +else + include $(BUILD_STATIC_LIBRARY) +endif include $(CLEAR_VARS)