Home | History | Annotate | Download | only in zlib
      1 LOCAL_PATH:= $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 # measurements show that the ARM version of ZLib is about x1.17 faster
      5 # than the thumb one...
      6 LOCAL_ARM_MODE := arm
      7 
      8 zlib_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 
     25 LOCAL_MODULE := libz
     26 LOCAL_MODULE_TAGS := optional
     27 LOCAL_CFLAGS += -O3 -DUSE_MMAP
     28 LOCAL_SRC_FILES := $(zlib_files)
     29 ifeq ($(TARGET_ARCH),arm)
     30   LOCAL_SDK_VERSION := 9
     31 endif
     32 include $(BUILD_SHARED_LIBRARY)
     33 
     34 include $(CLEAR_VARS)
     35 
     36 LOCAL_ARM_MODE := arm
     37 LOCAL_MODULE := libz
     38 LOCAL_MODULE_TAGS := optional
     39 LOCAL_CFLAGS += -O3 -DUSE_MMAP
     40 LOCAL_SRC_FILES := $(zlib_files)
     41 ifeq ($(TARGET_ARCH),arm)
     42   LOCAL_SDK_VERSION := 9
     43 endif
     44 include $(BUILD_STATIC_LIBRARY)
     45 
     46 include $(CLEAR_VARS)
     47 
     48 LOCAL_ARM_MODE := arm
     49 LOCAL_MODULE := libz
     50 LOCAL_MODULE_TAGS := optional
     51 LOCAL_CFLAGS += -O3 -DUSE_MMAP
     52 LOCAL_SRC_FILES := $(zlib_files)
     53 include $(BUILD_HOST_STATIC_LIBRARY)
     54 
     55 
     56 include $(CLEAR_VARS)
     57 
     58 LOCAL_ARM_MODE := arm
     59 LOCAL_MODULE := libz-host
     60 LOCAL_MODULE_TAGS := optional
     61 LOCAL_CFLAGS += -O3 -DUSE_MMAP
     62 LOCAL_SRC_FILES := $(zlib_files)
     63 include $(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 
     74 include $(CLEAR_VARS)
     75 LOCAL_SRC_FILES := $(zlib_files)
     76 LOCAL_MODULE:= libunz
     77 LOCAL_ARM_MODE := arm
     78 include $(BUILD_HOST_STATIC_LIBRARY)
     79 
     80 include $(CLEAR_VARS)
     81 LOCAL_SRC_FILES := $(zlib_files)
     82 LOCAL_MODULE:= libunz
     83 LOCAL_ARM_MODE := arm
     84 ifeq ($(TARGET_ARCH),arm)
     85   LOCAL_SDK_VERSION := 9
     86 endif
     87 include $(BUILD_STATIC_LIBRARY)
     88 
     89 include $(CLEAR_VARS)
     90 
     91 LOCAL_SRC_FILES:=        \
     92 	src/test/minigzip.c
     93 
     94 LOCAL_MODULE:= gzip
     95 
     96 LOCAL_SHARED_LIBRARIES := libz
     97 
     98 include $(BUILD_EXECUTABLE)
     99 
    100 include $(CLEAR_VARS)
    101 
    102 LOCAL_SRC_FILES:=        \
    103 	src/test/minigzip.c
    104 
    105 LOCAL_MODULE:= minigzip
    106 
    107 LOCAL_STATIC_LIBRARIES := libz
    108 
    109 include $(BUILD_HOST_EXECUTABLE)
    110