1 LOCAL_PATH:= $(call my-dir) 2 3 # build host static library 4 include $(CLEAR_VARS) 5 6 LOCAL_SRC_FILES:= \ 7 centraldir.c \ 8 zipfile.c 9 10 LOCAL_STATIC_LIBRARIES := \ 11 libunz 12 13 LOCAL_MODULE:= libzipfile 14 15 LOCAL_C_INCLUDES += external/zlib 16 17 LOCAL_CFLAGS := -Werror 18 19 LOCAL_MULTILIB := both 20 21 include $(BUILD_HOST_STATIC_LIBRARY) 22 23 # build device static library 24 include $(CLEAR_VARS) 25 26 LOCAL_SRC_FILES:= \ 27 centraldir.c \ 28 zipfile.c 29 30 LOCAL_STATIC_LIBRARIES := \ 31 libunz 32 33 LOCAL_MODULE:= libzipfile 34 35 LOCAL_C_INCLUDES += external/zlib 36 37 LOCAL_CFLAGS := -Werror 38 39 include $(BUILD_STATIC_LIBRARY) 40 41 42 # build test_zipfile 43 include $(CLEAR_VARS) 44 45 LOCAL_SRC_FILES:= \ 46 test_zipfile.c 47 48 LOCAL_STATIC_LIBRARIES := libzipfile libunz 49 50 LOCAL_MODULE := test_zipfile 51 52 LOCAL_C_INCLUDES += external/zlib 53 54 LOCAL_CFLAGS := -Werror 55 56 include $(BUILD_HOST_EXECUTABLE) 57