• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	gzclose.c \
13	gzlib.c \
14	gzread.c \
15	gzwrite.c \
16	uncompr.c \
17	deflate.c \
18	trees.c \
19	zutil.c \
20	inflate.c \
21	infback.c \
22	inftrees.c \
23	inffast.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
59unzip_files := \
60	adler32.c \
61	crc32.c \
62	zutil.c \
63	inflate.c \
64	inftrees.c \
65	inffast.c
66
67include $(CLEAR_VARS)
68LOCAL_SRC_FILES := $(unzip_files)
69LOCAL_MODULE:= libunz
70LOCAL_ARM_MODE := arm
71include $(BUILD_HOST_STATIC_LIBRARY)
72
73include $(CLEAR_VARS)
74LOCAL_SRC_FILES := $(unzip_files)
75LOCAL_MODULE:= libunz
76LOCAL_ARM_MODE := arm
77ifneq ($(TARGET_ARCH),x86)
78  LOCAL_NDK_VERSION := 5
79  LOCAL_SDK_VERSION := 9
80endif
81include $(BUILD_STATIC_LIBRARY)
82
83include $(CLEAR_VARS)
84
85LOCAL_SRC_FILES:=        \
86	minigzip.c
87
88LOCAL_MODULE:= gzip
89
90LOCAL_SHARED_LIBRARIES := libz
91
92include $(BUILD_EXECUTABLE)
93
94include $(CLEAR_VARS)
95
96LOCAL_SRC_FILES:=        \
97	minigzip.c
98
99LOCAL_MODULE:= minigzip
100
101LOCAL_STATIC_LIBRARIES := libz
102
103include $(BUILD_HOST_EXECUTABLE)
104