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) 53LOCAL_MULTILIB := both 54include $(BUILD_HOST_STATIC_LIBRARY) 55 56 57include $(CLEAR_VARS) 58 59LOCAL_ARM_MODE := arm 60LOCAL_MODULE := libz-host 61LOCAL_MODULE_TAGS := optional 62LOCAL_CFLAGS += -O3 -DUSE_MMAP 63LOCAL_SRC_FILES := $(zlib_files) 64LOCAL_MULTILIB := both 65include $(BUILD_HOST_SHARED_LIBRARY) 66 67 68 69# libunz used to be an unzip-only subset of libz. Only host-side tools were 70# taking advantage of it, though, and it's not a notion supported by zlib 71# itself. This caused trouble during the 1.2.6 upgrade because libunz ended 72# up needing to drag in most of the other files anyway. So this is a first 73# step towards killing libunz. If you're reading this in the K release or 74# later, please see if you can get a bit further in removing libunz... 75 76include $(CLEAR_VARS) 77LOCAL_SRC_FILES := $(zlib_files) 78LOCAL_MODULE:= libunz 79LOCAL_ARM_MODE := arm 80LOCAL_MULTILIB := both 81include $(BUILD_HOST_STATIC_LIBRARY) 82 83include $(CLEAR_VARS) 84LOCAL_SRC_FILES := $(zlib_files) 85LOCAL_MODULE:= libunz 86LOCAL_ARM_MODE := arm 87ifeq ($(TARGET_ARCH),arm) 88 LOCAL_SDK_VERSION := 9 89endif 90include $(BUILD_STATIC_LIBRARY) 91 92include $(CLEAR_VARS) 93 94LOCAL_SRC_FILES:= \ 95 src/test/minigzip.c 96 97LOCAL_MODULE:= gzip 98 99LOCAL_SHARED_LIBRARIES := libz 100 101include $(BUILD_EXECUTABLE) 102 103include $(CLEAR_VARS) 104 105LOCAL_SRC_FILES:= \ 106 src/test/minigzip.c 107 108LOCAL_MODULE:= minigzip 109 110LOCAL_STATIC_LIBRARIES := libz 111 112include $(BUILD_HOST_EXECUTABLE) 113