blob: 6cca0923974069348208c15750344cfc8757ca6f [file] [log] [blame]
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -08001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES := \
5 Hash.c \
6 SysUtil.c \
7 DirUtil.c \
8 Inlines.c \
9 Zip.c
10
Kenny Root7eb75672012-10-16 10:47:27 -070011LOCAL_C_INCLUDES := \
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080012 external/zlib \
13 external/safe-iop/include
Stephen Smalley779701d2012-02-09 14:13:23 -050014
Kenny Root7eb75672012-10-16 10:47:27 -070015LOCAL_STATIC_LIBRARIES := libselinux
Stephen Smalley779701d2012-02-09 14:13:23 -050016
Ethan Yonker738be7a2014-12-10 11:40:43 -060017LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
18
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080019LOCAL_MODULE := libminzip
20
21LOCAL_CFLAGS += -Wall
Dees_Troy2673cec2013-04-02 20:22:16 +000022LOCAL_SHARED_LIBRARIES := libz
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080023
Dees_Troy2673cec2013-04-02 20:22:16 +000024include $(BUILD_SHARED_LIBRARY)
Dees_Troyf6b15d12013-04-11 15:29:54 +000025
26
27include $(CLEAR_VARS)
28
29LOCAL_SRC_FILES := \
30 Hash.c \
31 SysUtil.c \
32 DirUtil.c \
33 Inlines.c \
34 Zip.c
35
36LOCAL_C_INCLUDES += \
37 external/zlib \
38 external/safe-iop/include
39
Dees Troy4bf3b0d2013-09-11 19:12:49 +000040ifeq ($(TWHAVE_SELINUX),true)
Dees_Troyf6b15d12013-04-11 15:29:54 +000041LOCAL_C_INCLUDES += external/libselinux/include
42LOCAL_STATIC_LIBRARIES += libselinux
43LOCAL_CFLAGS += -DHAVE_SELINUX
44endif
45
46LOCAL_MODULE := libminzip
47
48LOCAL_CFLAGS += -Wall
49LOCAL_STATIC_LIBRARIES := libz
50
51include $(BUILD_STATIC_LIBRARY)