summaryrefslogtreecommitdiffstats
path: root/twrpDigest/Android.mk
blob: 5e69822d76bbfa4278f3f316335e9efa116b7b03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE := libtwrpdigest
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS = -fno-strict-aliasing
LOCAL_C_INCLUDES := external/openssl/include bionic

LOCAL_SRC_FILES = \
        twrpDigest.cpp \
        twrpMD5.cpp \
        digest/md5/md5.c

ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
        LOCAL_C_INCLUDES += external/stlport/stlport
endif

LOCAL_SHARED_LIBRARIES += libc libstdc++

ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
        LOCAL_SHARED_LIBRARIES += libstlport
else
        LOCAL_SHARED_LIBRARIES += libc++ libcrypto
	LOCAL_SRC_FILES += \
        	twrpSHA.cpp
endif


include $(BUILD_SHARED_LIBRARY)