blob: 85e0acc5b6bc1657c59769aa24251d6e0a598b11 [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
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
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)