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