| LOCAL_PATH := $(call my-dir) |
| # Build libtwrpmtp library |
| LOCAL_MODULE := libtwrpmtp-ffs |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasing -Wno-unused-variable -Wno-format -Wno-unused-parameter -Wno-unused-private-field |
| LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/ bootable/recovery/twrplibusbhost/include |
| ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0) |
| LOCAL_C_INCLUDES += external/stlport/stlport |
| LOCAL_SHARED_LIBRARIES += libstlport |
| LOCAL_SHARED_LIBRARIES += libc++ |
| ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) |
| LOCAL_CFLAGS += -D_FFS_DEVICE |
| LOCAL_SHARED_LIBRARIES += libasyncio |
| LOCAL_SHARED_LIBRARIES += libz \ |
| LOCAL_C_INCLUDES += bootable/recovery/twrplibusbhost/include |
| ifneq ($(TW_MTP_DEVICE),) |
| LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE) |
| ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 25; echo $$?),0) |
| LOCAL_CFLAGS += -DHAS_USBHOST_TIMEOUT |
| include $(BUILD_SHARED_LIBRARY) |