bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
bigbiff bigbiff | 19fb79c | 2016-09-05 21:04:51 -0400 | [diff] [blame] | 2 | |
| 3 | include $(CLEAR_VARS) |
| 4 | LOCAL_MODULE := libtwadbbu |
| 5 | LOCAL_MODULE_TAGS := optional |
bigbiff bigbiff | 38b83c1 | 2017-12-28 19:58:52 -0500 | [diff] [blame] | 6 | LOCAL_CFLAGS = -fno-strict-aliasing -D_LARGFILE_SOURCE #-D_DEBUG_ADB_BACKUP |
bigbiff bigbiff | 19fb79c | 2016-09-05 21:04:51 -0400 | [diff] [blame] | 7 | LOCAL_C_INCLUDES += bionic external/zlib |
| 8 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 9 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 10 | endif |
| 11 | |
| 12 | LOCAL_SRC_FILES = \ |
| 13 | libtwadbbu.cpp \ |
| 14 | twrpback.cpp |
| 15 | |
| 16 | LOCAL_SHARED_LIBRARIES += libz libc libstdc++ libtwrpdigest |
| 17 | |
| 18 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 19 | LOCAL_SHARED_LIBRARIES += libstlport |
| 20 | else |
| 21 | LOCAL_SHARED_LIBRARIES += libc++ |
| 22 | endif |
| 23 | |
| 24 | include $(BUILD_SHARED_LIBRARY) |
| 25 | |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 26 | include $(CLEAR_VARS) |
| 27 | |
| 28 | LOCAL_SRC_FILES:= \ |
bigbiff bigbiff | 19fb79c | 2016-09-05 21:04:51 -0400 | [diff] [blame] | 29 | adbbumain.cpp |
bigbiff bigbiff | 56cf564 | 2016-08-19 17:43:45 -0400 | [diff] [blame] | 30 | |
bigbiff bigbiff | 19fb79c | 2016-09-05 21:04:51 -0400 | [diff] [blame] | 31 | LOCAL_SHARED_LIBRARIES += libstdc++ libz libtwadbbu |
| 32 | |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 33 | ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| 34 | LOCAL_C_INCLUDES += external/stlport/stlport |
| 35 | LOCAL_SHARED_LIBRARIES += libstlport |
| 36 | else |
| 37 | LOCAL_SHARED_LIBRARIES += libc++ |
| 38 | endif |
| 39 | |
| 40 | LOCAL_C_INCLUDES += bionic external/zlib |
| 41 | LOCAL_CFLAGS:= -c -W |
| 42 | LOCAL_MODULE:= twrpbu |
| 43 | LOCAL_MODULE_STEM := bu |
bigbiff | d58ba18 | 2020-03-23 10:02:29 -0400 | [diff] [blame] | 44 | LOCAL_MODULE_TAGS:= optional |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 45 | LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES |
bigbiff | 7ed5106 | 2020-12-02 13:18:20 -0500 | [diff] [blame] | 46 | LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin |
bigbiff | ce8f83c | 2015-12-12 18:30:21 -0500 | [diff] [blame] | 47 | include $(BUILD_EXECUTABLE) |