blob: c05f265d5da03893de8f58475eb846ebdd9d606a [file] [log] [blame]
bigbiffce8f83c2015-12-12 18:30:21 -05001LOCAL_PATH:= $(call my-dir)
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04002
3include $(CLEAR_VARS)
4LOCAL_MODULE := libtwadbbu
5LOCAL_MODULE_TAGS := optional
bigbiff bigbiff38b83c12017-12-28 19:58:52 -05006LOCAL_CFLAGS = -fno-strict-aliasing -D_LARGFILE_SOURCE #-D_DEBUG_ADB_BACKUP
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -04007LOCAL_C_INCLUDES += bionic external/zlib
8ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
9 LOCAL_C_INCLUDES += external/stlport/stlport
10endif
11
12LOCAL_SRC_FILES = \
13 libtwadbbu.cpp \
14 twrpback.cpp
15
16LOCAL_SHARED_LIBRARIES += libz libc libstdc++ libtwrpdigest
17
18ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
19 LOCAL_SHARED_LIBRARIES += libstlport
20else
21 LOCAL_SHARED_LIBRARIES += libc++
22endif
23
24include $(BUILD_SHARED_LIBRARY)
25
bigbiffce8f83c2015-12-12 18:30:21 -050026include $(CLEAR_VARS)
27
28LOCAL_SRC_FILES:= \
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -040029 adbbumain.cpp
bigbiff bigbiff56cf5642016-08-19 17:43:45 -040030
bigbiff bigbiff19fb79c2016-09-05 21:04:51 -040031LOCAL_SHARED_LIBRARIES += libstdc++ libz libtwadbbu
32
bigbiffce8f83c2015-12-12 18:30:21 -050033ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
34 LOCAL_C_INCLUDES += external/stlport/stlport
35 LOCAL_SHARED_LIBRARIES += libstlport
36else
37 LOCAL_SHARED_LIBRARIES += libc++
38endif
39
40LOCAL_C_INCLUDES += bionic external/zlib
41LOCAL_CFLAGS:= -c -W
42LOCAL_MODULE:= twrpbu
43LOCAL_MODULE_STEM := bu
bigbiffd58ba182020-03-23 10:02:29 -040044LOCAL_MODULE_TAGS:= optional
bigbiffce8f83c2015-12-12 18:30:21 -050045LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
bigbiff7ed51062020-12-02 13:18:20 -050046LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/system/bin
bigbiffce8f83c2015-12-12 18:30:21 -050047include $(BUILD_EXECUTABLE)