blob: 33d3ad7d317e81e34388d3eb659a3f4e81590c81 [file] [log] [blame]
bigbiffce8f83c2015-12-12 18:30:21 -05001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
bigbiff bigbiff56cf5642016-08-19 17:43:45 -04005 twrpback.cpp
6
7LOCAL_SHARED_LIBRARIES += libstdc++ libz libtwrpdigest
bigbiffce8f83c2015-12-12 18:30:21 -05008ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
9 LOCAL_C_INCLUDES += external/stlport/stlport
10 LOCAL_SHARED_LIBRARIES += libstlport
11else
12 LOCAL_SHARED_LIBRARIES += libc++
13endif
14
15LOCAL_C_INCLUDES += bionic external/zlib
16LOCAL_CFLAGS:= -c -W
17LOCAL_MODULE:= twrpbu
18LOCAL_MODULE_STEM := bu
19LOCAL_MODULE_TAGS:= eng
20LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
21LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
22include $(BUILD_EXECUTABLE)
23
24include $(CLEAR_VARS)
25LOCAL_MODULE := libtwadbbu
26LOCAL_MODULE_TAGS := optional
that68d59732016-08-05 01:02:36 +020027LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing
28LOCAL_C_INCLUDES += bionic external/zlib
bigbiffce8f83c2015-12-12 18:30:21 -050029ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
30 LOCAL_C_INCLUDES += external/stlport/stlport
Ethan Yonker534d4e02016-08-26 10:05:03 -050031 LOCAL_SHARED_LIBRARIES += libstlport
32else
33 LOCAL_SHARED_LIBRARIES += libc++
bigbiffce8f83c2015-12-12 18:30:21 -050034endif
35
36LOCAL_SRC_FILES = \
37 libtwadbbu.cpp
38
39LOCAL_SHARED_LIBRARIES += libz libc libstdc++
40
bigbiffce8f83c2015-12-12 18:30:21 -050041include $(BUILD_SHARED_LIBRARY)