summaryrefslogblamecommitdiffstats
path: root/twrpDigest/Android.mk
blob: 5e69822d76bbfa4278f3f316335e9efa116b7b03 (plain) (tree)




























                                                               
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)