blob: ad976e796b37f792b48c539342cc73a9f13bc994 [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
25LOCAL_CFLAGS += -Wall
Matt Mower231daef2015-11-11 23:13:44 -060026LOCAL_SHARED_LIBRARIES += libz
The Android Open Source Projectc24a8e62009-03-03 19:28:42 -080027
Dees_Troy2673cec2013-04-02 20:22:16 +000028include $(BUILD_SHARED_LIBRARY)
Dees_Troyf6b15d12013-04-11 15:29:54 +000029
30
31include $(CLEAR_VARS)
32
33LOCAL_SRC_FILES := \
34 Hash.c \
35 SysUtil.c \
36 DirUtil.c \
37 Inlines.c \
38 Zip.c
39
40LOCAL_C_INCLUDES += \
41 external/zlib \
42 external/safe-iop/include
43
Dees Troy4bf3b0d2013-09-11 19:12:49 +000044ifeq ($(TWHAVE_SELINUX),true)
Dees_Troyf6b15d12013-04-11 15:29:54 +000045LOCAL_C_INCLUDES += external/libselinux/include
46LOCAL_STATIC_LIBRARIES += libselinux
47LOCAL_CFLAGS += -DHAVE_SELINUX
48endif
49
50LOCAL_MODULE := libminzip
51
52LOCAL_CFLAGS += -Wall
Matt Mower231daef2015-11-11 23:13:44 -060053LOCAL_STATIC_LIBRARIES += libz
Dees_Troyf6b15d12013-04-11 15:29:54 +000054
55include $(BUILD_STATIC_LIBRARY)