blob: 10faf6f65010445bab510cd022938193cdc311a8 [file] [log] [blame]
bigbiffce8f83c2015-12-12 18:30:21 -05001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5 twrpback.cpp \
6 ../twrpDigest.cpp \
7 ../digest/md5.c
Ethan Yonker34ae4832016-08-24 15:32:18 -05008LOCAL_SHARED_LIBRARIES += libstdc++ libz libselinux
bigbiffce8f83c2015-12-12 18:30:21 -05009ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
10 LOCAL_C_INCLUDES += external/stlport/stlport
11 LOCAL_SHARED_LIBRARIES += libstlport
12else
13 LOCAL_SHARED_LIBRARIES += libc++
14endif
15
16LOCAL_C_INCLUDES += bionic external/zlib
17LOCAL_CFLAGS:= -c -W
18LOCAL_MODULE:= twrpbu
19LOCAL_MODULE_STEM := bu
20LOCAL_MODULE_TAGS:= eng
21LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
22LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
23include $(BUILD_EXECUTABLE)
24
25include $(CLEAR_VARS)
26LOCAL_MODULE := libtwadbbu
27LOCAL_MODULE_TAGS := optional
that68d59732016-08-05 01:02:36 +020028LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -fno-strict-aliasing
29LOCAL_C_INCLUDES += bionic external/zlib
bigbiffce8f83c2015-12-12 18:30:21 -050030ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
31 LOCAL_C_INCLUDES += external/stlport/stlport
Ethan Yonker534d4e02016-08-26 10:05:03 -050032 LOCAL_SHARED_LIBRARIES += libstlport
33else
34 LOCAL_SHARED_LIBRARIES += libc++
bigbiffce8f83c2015-12-12 18:30:21 -050035endif
36
37LOCAL_SRC_FILES = \
38 libtwadbbu.cpp
39
40LOCAL_SHARED_LIBRARIES += libz libc libstdc++
41
bigbiffce8f83c2015-12-12 18:30:21 -050042include $(BUILD_SHARED_LIBRARY)