2009-03-04 04:32:55 +01:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
# build host static library
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
centraldir.c \
|
|
|
|
zipfile.c
|
|
|
|
|
2014-12-05 16:59:03 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz
|
2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libzipfile
|
|
|
|
|
2014-05-01 16:27:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2014-06-05 20:42:26 +02:00
|
|
|
LOCAL_MULTILIB := both
|
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
include $(BUILD_HOST_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
# build device static library
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
centraldir.c \
|
|
|
|
zipfile.c
|
|
|
|
|
2014-12-05 16:59:03 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := libz
|
2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE:= libzipfile
|
|
|
|
|
2014-05-01 16:27:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
# build test_zipfile
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
test_zipfile.c
|
|
|
|
|
2014-12-05 16:59:03 +01:00
|
|
|
LOCAL_STATIC_LIBRARIES := libzipfile libz
|
2009-03-04 04:32:55 +01:00
|
|
|
|
|
|
|
LOCAL_MODULE := test_zipfile
|
|
|
|
|
2014-05-01 16:27:02 +02:00
|
|
|
LOCAL_CFLAGS := -Werror
|
|
|
|
|
2009-03-04 04:32:55 +01:00
|
|
|
include $(BUILD_HOST_EXECUTABLE)
|