summaryrefslogtreecommitdiff
path: root/Android.mk
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-01-31 11:31:13 -0800
committerElliott Hughes <enh@google.com>2012-01-31 11:31:13 -0800
commitee9e11d0d4e3361533860bf04896abb86a291bfb (patch)
treee54371f8731899df19f2c000dbd98dc8ad871662 /Android.mk
parent69e5801bd16a495e1c1666669fe827b1ddb8d56b (diff)
downloadzlib-ee9e11d0d4e3361533860bf04896abb86a291bfb.tar.gz
Upgrade to zlib 1.2.6.
Change-Id: Id2bcb4a91755b39521c1151ebdcae557a4a783ce
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk29
1 files changed, 14 insertions, 15 deletions
diff --git a/Android.mk b/Android.mk
index a46bc63..d2f18a0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -9,18 +9,18 @@ zlib_files := \
adler32.c \
compress.c \
crc32.c \
+ deflate.c \
gzclose.c \
gzlib.c \
gzread.c \
gzwrite.c \
- uncompr.c \
- deflate.c \
- trees.c \
- zutil.c \
- inflate.c \
infback.c \
+ inflate.c \
inftrees.c \
- inffast.c
+ inffast.c \
+ trees.c \
+ uncompr.c \
+ zutil.c
LOCAL_MODULE := libz
LOCAL_MODULE_TAGS := optional
@@ -56,22 +56,21 @@ include $(BUILD_HOST_STATIC_LIBRARY)
-unzip_files := \
- adler32.c \
- crc32.c \
- zutil.c \
- inflate.c \
- inftrees.c \
- inffast.c
+# libunz used to be an unzip-only subset of libz. Only host-side tools were
+# taking advantage of it, though, and it's not a notion supported by zlib
+# itself. This caused trouble during the 1.2.6 upgrade because libunz ended
+# up needing to drag in most of the other files anyway. So this is a first
+# step towards killing libunz. If you're reading this in the K release or
+# later, please see if you can get a bit further in removing libunz...
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := $(unzip_files)
+LOCAL_SRC_FILES := $(zlib_files)
LOCAL_MODULE:= libunz
LOCAL_ARM_MODE := arm
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
-LOCAL_SRC_FILES := $(unzip_files)
+LOCAL_SRC_FILES := $(zlib_files)
LOCAL_MODULE:= libunz
LOCAL_ARM_MODE := arm
ifneq ($(TARGET_ARCH),x86)