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