blob: 65568ef3f2d0cf26bbff6df24093747d348d4ded [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
8LOCAL_SHARED_LIBRARIES += libstdc++ libz
9ifeq ($(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
28LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasing
29LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/
30ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
31 LOCAL_C_INCLUDES += external/stlport/stlport
32endif
33
34LOCAL_SRC_FILES = \
35 libtwadbbu.cpp
36
37LOCAL_SHARED_LIBRARIES += libz libc libstdc++
38
39ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
40 LOCAL_SHARED_LIBRARIES += libstlport
41else
42 LOCAL_SHARED_LIBRARIES += libc++
43endif
44
45include $(BUILD_SHARED_LIBRARY)