blob: 8f8dbd0fb1a80786257c351b60c9f8e36e48eae3 [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
44LOCAL_MODULE_TAGS:= eng
45LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
46LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
47include $(BUILD_EXECUTABLE)
48