blob: 5e69822d76bbfa4278f3f316335e9efa116b7b03 [file] [log] [blame]
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_MODULE := libtwrpdigest
5LOCAL_MODULE_TAGS := optional
6LOCAL_CFLAGS = -fno-strict-aliasing
7LOCAL_C_INCLUDES := external/openssl/include bionic
8
9LOCAL_SRC_FILES = \
10 twrpDigest.cpp \
11 twrpMD5.cpp \
12 digest/md5/md5.c
13
14ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
15 LOCAL_C_INCLUDES += external/stlport/stlport
16endif
17
18LOCAL_SHARED_LIBRARIES += libc libstdc++
19
20ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
21 LOCAL_SHARED_LIBRARIES += libstlport
22else
23 LOCAL_SHARED_LIBRARIES += libc++ libcrypto
24 LOCAL_SRC_FILES += \
25 twrpSHA.cpp
26endif
27
28
29include $(BUILD_SHARED_LIBRARY)