summaryrefslogtreecommitdiffstats
path: root/twrpDigest/Android.mk
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2016-08-19 23:43:45 +0200
committerEthan Yonker <dees_troy@teamw.in>2017-06-17 14:05:45 +0200
commit56cf56465857e79e814b1e2d50f13e176170fcb3 (patch)
tree33b1ed63aa4e51f6e49fda5bd6ccb204e1e8fdab /twrpDigest/Android.mk
parentMerge "Fix minui issues for some build trees" into android-7.1 (diff)
downloadandroid_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.gz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.bz2
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.lz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.xz
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.tar.zst
android_bootable_recovery-56cf56465857e79e814b1e2d50f13e176170fcb3.zip
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)