bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES:= \ |
bigbiff bigbiff | 56cf564 | 2016-08-19 17:43:45 -0400 | [diff] [blame] | 5 | twrpback.cpp |
| 6 | |
| 7 | LOCAL_SHARED_LIBRARIES += libstdc++ libz libtwrpdigest |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 8 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 9 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 10 | LOCAL_SHARED_LIBRARIES += libstlport |
| 11 | else |
| 12 | LOCAL_SHARED_LIBRARIES += libc++ |
| 13 | endif |
| 14 | |
| 15 | LOCAL_C_INCLUDES += bionic external/zlib |
| 16 | LOCAL_CFLAGS:= -c -W |
| 17 | LOCAL_MODULE:= twrpbu |
| 18 | LOCAL_MODULE_STEM := bu |
| 19 | LOCAL_MODULE_TAGS:= eng |
| 20 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
| 21 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin |
| 22 | include $(BUILD_EXECUTABLE) |
| 23 | |
| 24 | include $(CLEAR_VARS) |
| 25 | LOCAL_MODULE := libtwadbbu |
| 26 | LOCAL_MODULE_TAGS := optional |
that | 68d5973 | 2016-08-05 01:02:36 +0200 | [diff] [blame] | 27 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing |
| 28 | LOCAL_C_INCLUDES += bionic external/zlib |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 29 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 30 | LOCAL_C_INCLUDES += external/stlport/stlport |
Ethan Yonker | 534d4e0 | 2016-08-26 10:05:03 -0500 | [diff] [blame] | 31 | LOCAL_SHARED_LIBRARIES += libstlport |
| 32 | else |
| 33 | LOCAL_SHARED_LIBRARIES += libc++ |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 34 | endif |
| 35 | |
| 36 | LOCAL_SRC_FILES = \ |
| 37 | libtwadbbu.cpp |
| 38 | |
| 39 | LOCAL_SHARED_LIBRARIES += libz libc libstdc++ |
| 40 | |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 41 | include $(BUILD_SHARED_LIBRARY) |