46601793e3
Change-Id: I58fa91bc097dfba573b6db27e389f5ed6556032f
56 lines
822 B
Makefile
56 lines
822 B
Makefile
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
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
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
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
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
|
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|