| LOCAL_PATH := $(call my-dir) |
| # Build libtwrpmtp library |
| LOCAL_MODULE := libtwrpmtp |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasing |
| LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/ |
| LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery |
| ifeq (,$(filter $(PLATFORM_SDK_VERSION), 23)) |
| LOCAL_SHARED_LIBRARIES += libstlport |
| LOCAL_SHARED_LIBRARIES += libc++ |
| ifneq ($(TW_MTP_DEVICE),) |
| LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE) |
| include $(BUILD_SHARED_LIBRARY) |
| # Build twrpmtp binary / executable |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP |
| LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/ |
| LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery |
| include $(BUILD_EXECUTABLE) |