From f5f7c72ad695876cf63056424f93e863884034dd Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 11 Mar 2013 21:08:18 +0100 Subject: [PATCH] [DEV] remove dependency of the LibZip when not needed --- Generic.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Generic.mk b/Generic.mk index 998b799..3b81f2a 100644 --- a/Generic.mk +++ b/Generic.mk @@ -3,7 +3,17 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := etk -LOCAL_LIBRARIES := libzip linearmath +LOCAL_LIBRARIES := linearmath + +# with android we have no real choice ... +ifeq ("$(PLATFORM)","Android") + LOCAL_LIBRARIES += libzip +else + ifeq ("$(CONFIG_BUILD_LIBZIP)","y") + LOCAL_LIBRARIES += libzip + endif +endif + LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)