Android.mk 1.19 KB
Newer Older
bigbiff's avatar
bigbiff committed
1
LOCAL_PATH:= $(call my-dir)
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

include $(CLEAR_VARS)
LOCAL_MODULE := libtwadbbu
LOCAL_MODULE_TAGS := optional
LOCAL_CFLAGS = -fno-strict-aliasing -D_LARGFILE_SOURCE
LOCAL_C_INCLUDES += bionic external/zlib
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
    LOCAL_C_INCLUDES += external/stlport/stlport
endif

LOCAL_SRC_FILES = \
        libtwadbbu.cpp \
        twrpback.cpp

LOCAL_SHARED_LIBRARIES += libz libc libstdc++ libtwrpdigest

ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
    LOCAL_SHARED_LIBRARIES += libstlport
else
    LOCAL_SHARED_LIBRARIES += libc++
endif

include $(BUILD_SHARED_LIBRARY)

bigbiff's avatar
bigbiff committed
26 27 28
include $(CLEAR_VARS)

LOCAL_SRC_FILES:= \
29 30 31
        adbbumain.cpp

LOCAL_SHARED_LIBRARIES += libstdc++ libz libtwadbbu
bigbiff bigbiff's avatar
bigbiff bigbiff committed
32

bigbiff's avatar
bigbiff committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
    LOCAL_C_INCLUDES += external/stlport/stlport
    LOCAL_SHARED_LIBRARIES += libstlport
else
    LOCAL_SHARED_LIBRARIES += libc++
endif

LOCAL_C_INCLUDES += bionic external/zlib
LOCAL_CFLAGS:= -c -W
LOCAL_MODULE:= twrpbu
LOCAL_MODULE_STEM := bu
LOCAL_MODULE_TAGS:= eng
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin
include $(BUILD_EXECUTABLE)