2009-03-04 11:32:55 +08:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
# build host static library
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
centraldir.c \
|
|
|
|
zipfile.c
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libunz
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libzipfile
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += external/zlib
|
|
|
|
|
2014-05-01 22:27:02 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2014-06-06 02:42:26 +08:00
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
# build device static library
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
centraldir.c \
|
|
|
|
zipfile.c
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libunz
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libzipfile
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += external/zlib
|
|
|
|
|
2014-05-01 22:27:02 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
# build test_zipfile
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
test_zipfile.c
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := libzipfile libunz
|
|
|
|
|
|
|
|
LOCAL_MODULE := test_zipfile
|
|
|
|
|
|
|
|
LOCAL_C_INCLUDES += external/zlib
|
|
|
|
|
2014-05-01 22:27:02 +08:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2009-03-04 11:32:55 +08:00
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|