summaryrefslogtreecommitdiffstats
path: root/mtp/Android.mk
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-08-26 17:05:03 +0200
committerEthan Yonker <dees_troy@teamw.in>2016-08-26 17:05:03 +0200
commit534d4e0612d96210fe76c03c8c0a0355e0f20453 (patch)
tree05324fc8c6c0d97d76fbc607d72ced81f5a0bb9d /mtp/Android.mk
parentFix compatibility with 5.1 (diff)
downloadandroid_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.gz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.bz2
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.lz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.xz
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.tar.zst
android_bootable_recovery-534d4e0612d96210fe76c03c8c0a0355e0f20453.zip
Diffstat (limited to 'mtp/Android.mk')
-rw-r--r--mtp/Android.mk9
1 files changed, 3 insertions, 6 deletions
diff --git a/mtp/Android.mk b/mtp/Android.mk
index 7128bdefe..c6a7fb7db 100644
--- a/mtp/Android.mk
+++ b/mtp/Android.mk
@@ -9,6 +9,9 @@ LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasi
LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/
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_SRC_FILES = \
@@ -34,12 +37,6 @@ LOCAL_SRC_FILES = \
node.cpp
LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery libselinux
-ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 23; echo $$?),0)
- LOCAL_SHARED_LIBRARIES += libstlport
-else
- LOCAL_SHARED_LIBRARIES += libc++
-endif
-
ifneq ($(TW_MTP_DEVICE),)
LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE)
endif