| 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 \ |
| -Wno-implicit-fallthrough |
| LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic \ |
| frameworks/base/include \ |
| bootable/recovery/twrplibusbhost/include \ |
| bootable/recovery/install/include |
| LOCAL_SHARED_LIBRARIES += libc++ libaosprecovery |
| 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) |