1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4# measurements show that the ARM version of ZLib is about x1.17 faster 5# than the thumb one... 6LOCAL_ARM_MODE := arm 7 8zlib_files := \ 9 src/adler32.c \ 10 src/compress.c \ 11 src/crc32.c \ 12 src/deflate.c \ 13 src/gzclose.c \ 14 src/gzlib.c \ 15 src/gzread.c \ 16 src/gzwrite.c \ 17 src/infback.c \ 18 src/inflate.c \ 19 src/inftrees.c \ 20 src/inffast.c \ 21 src/trees.c \ 22 src/uncompr.c \ 23 src/zutil.c 24 25LOCAL_MODULE := libz 26LOCAL_MODULE_TAGS := optional 27LOCAL_CFLAGS += -O3 -DUSE_MMAP 28LOCAL_SRC_FILES := $(zlib_files) 29ifeq ($(TARGET_ARCH),arm) 30 LOCAL_SDK_VERSION := 9 31endif 32include $(BUILD_SHARED_LIBRARY) 33 34include $(CLEAR_VARS) 35 36LOCAL_ARM_MODE := arm 37LOCAL_MODULE := libz 38LOCAL_MODULE_TAGS := optional 39LOCAL_CFLAGS += -O3 -DUSE_MMAP 40LOCAL_SRC_FILES := $(zlib_files) 41ifeq ($(TARGET_ARCH),arm) 42 LOCAL_SDK_VERSION := 9 43endif 44include $(BUILD_STATIC_LIBRARY) 45 46include $(CLEAR_VARS) 47 48LOCAL_ARM_MODE := arm 49LOCAL_MODULE := libz 50LOCAL_MODULE_TAGS := optional 51LOCAL_CFLAGS += -O3 -DUSE_MMAP 52LOCAL_SRC_FILES := $(zlib_files) 53include $(BUILD_HOST_STATIC_LIBRARY) 54 55 56include $(CLEAR_VARS) 57 58LOCAL_ARM_MODE := arm 59LOCAL_MODULE := libz-host 60LOCAL_MODULE_TAGS := optional 61LOCAL_CFLAGS += -O3 -DUSE_MMAP 62LOCAL_SRC_FILES := $(zlib_files) 63include $(BUILD_HOST_SHARED_LIBRARY) 64 65 66 67# libunz used to be an unzip-only subset of libz. Only host-side tools were 68# taking advantage of it, though, and it's not a notion supported by zlib 69# itself. This caused trouble during the 1.2.6 upgrade because libunz ended 70# up needing to drag in most of the other files anyway. So this is a first 71# step towards killing libunz. If you're reading this in the K release or 72# later, please see if you can get a bit further in removing libunz... 73 74include $(CLEAR_VARS) 75LOCAL_SRC_FILES := $(zlib_files) 76LOCAL_MODULE:= libunz 77LOCAL_ARM_MODE := arm 78include $(BUILD_HOST_STATIC_LIBRARY) 79 80include $(CLEAR_VARS) 81LOCAL_SRC_FILES := $(zlib_files) 82LOCAL_MODULE:= libunz 83LOCAL_ARM_MODE := arm 84ifeq ($(TARGET_ARCH),arm) 85 LOCAL_SDK_VERSION := 9 86endif 87include $(BUILD_STATIC_LIBRARY) 88 89include $(CLEAR_VARS) 90 91LOCAL_SRC_FILES:= \ 92 src/test/minigzip.c 93 94LOCAL_MODULE:= gzip 95 96LOCAL_SHARED_LIBRARIES := libz 97 98include $(BUILD_EXECUTABLE) 99 100include $(CLEAR_VARS) 101 102LOCAL_SRC_FILES:= \ 103 src/test/minigzip.c 104 105LOCAL_MODULE:= minigzip 106 107LOCAL_STATIC_LIBRARIES := libz 108 109include $(BUILD_HOST_EXECUTABLE) 110