From 40ac96c72c7c0f9175c2acf5faea883cef647294 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Thu, 30 Oct 2014 09:53:38 -0700 Subject: Add shared library version of libziparchive. Change-Id: I9abded3bbff0e7976b1849c73e6978dd10ca84cd --- libziparchive/Android.mk | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/libziparchive/Android.mk b/libziparchive/Android.mk index d96bc63..76f4e05 100644 --- a/libziparchive/Android.mk +++ b/libziparchive/Android.mk @@ -46,6 +46,19 @@ LOCAL_MULTILIB := both include $(BUILD_HOST_STATIC_LIBRARY) include $(CLEAR_VARS) +LOCAL_MODULE := libziparchive +LOCAL_CPP_EXTENSION := .cc +LOCAL_SRC_FILES := ${source_files} +LOCAL_C_INCLUDES += ${includes} + +LOCAL_STATIC_LIBRARIES := libz libutils +LOCAL_SHARED_LIBRARIES := liblog +LOCAL_MODULE:= libziparchive-host +LOCAL_CFLAGS := -Werror +LOCAL_MULTILIB := both +include $(BUILD_HOST_SHARED_LIBRARY) + +include $(CLEAR_VARS) LOCAL_MODULE := ziparchive-tests LOCAL_CPP_EXTENSION := .cc LOCAL_CFLAGS += \ @@ -66,10 +79,10 @@ LOCAL_CFLAGS += \ -Werror \ -Wno-unnamed-type-template-args LOCAL_SRC_FILES := zip_archive_test.cc -LOCAL_STATIC_LIBRARIES := libziparchive-host \ +LOCAL_SHARED_LIBRARIES := libziparchive-host liblog +LOCAL_STATIC_LIBRARIES := \ libz \ libgtest_host \ libgtest_main_host \ - liblog \ libutils include $(BUILD_HOST_NATIVE_TEST) -- cgit v1.1