blob: 957ab0b2975526b3783ba3387ad030e63f490c4d [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
Matt Mower231daef2015-11-11 23:13:44 -060015ifeq ($(TWHAVE_SELINUX),true)
16LOCAL_C_INCLUDES += external/libselinux/include
17LOCAL_SHARED_LIBRARIES += libselinux
18LOCAL_CFLAGS += -DHAVE_SELINUX
19endif
Stephen Smalley779701d2012-02-09 14:13:23 -050020
Ethan Yonker738be7a2014-12-10 11:40:43 -060021LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
22
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080023LOCAL_MODULE := libminzip
24
Matt Mower231daef2015-11-11 23:13:44 -060025LOCAL_SHARED_LIBRARIES += libz
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080026
Ethan Yonker34ae4832016-08-24 15:32:18 -050027LOCAL_CLANG := true
28
29LOCAL_CFLAGS += -Werror -Wall
30
Dees_Troy2673cec2013-04-02 20:22:16 +000031include $(BUILD_SHARED_LIBRARY)
Dees_Troyf6b15d12013-04-11 15:29:54 +000032
33
34include $(CLEAR_VARS)
35
36LOCAL_SRC_FILES := \
37 Hash.c \
38 SysUtil.c \
39 DirUtil.c \
40 Inlines.c \
41 Zip.c
42
43LOCAL_C_INCLUDES += \
44 external/zlib \
45 external/safe-iop/include
46
Dees Troy4bf3b0d2013-09-11 19:12:49 +000047ifeq ($(TWHAVE_SELINUX),true)
Dees_Troyf6b15d12013-04-11 15:29:54 +000048LOCAL_C_INCLUDES += external/libselinux/include
49LOCAL_STATIC_LIBRARIES += libselinux
50LOCAL_CFLAGS += -DHAVE_SELINUX
51endif
52
Ethan Yonker34ae4832016-08-24 15:32:18 -050053LOCAL_CFLAGS += -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
54
Dees_Troyf6b15d12013-04-11 15:29:54 +000055LOCAL_MODULE := libminzip
56
Matt Mower231daef2015-11-11 23:13:44 -060057LOCAL_STATIC_LIBRARIES += libz
Dees_Troyf6b15d12013-04-11 15:29:54 +000058
Tao Bao80e46e02015-06-03 10:49:29 -070059LOCAL_CLANG := true
60
Elliott Hughesf267dee2015-06-23 12:31:02 -070061LOCAL_CFLAGS += -Werror -Wall
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080062
Dees_Troyf6b15d12013-04-11 15:29:54 +000063include $(BUILD_STATIC_LIBRARY)