summaryrefslogtreecommitdiffstats
path: root/twrpDigest/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'twrpDigest/Android.mk')
-rw-r--r--twrpDigest/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/twrpDigest/Android.mk b/twrpDigest/Android.mk
new file mode 100644
index 000000000..5e69822d7
--- /dev/null
+++ b/twrpDigest/Android.mk
@@ -0,0 +1,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)