bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # Build libtwrpmtp library |
| 4 | |
| 5 | include $(CLEAR_VARS) |
| 6 | |
| 7 | LOCAL_MODULE := libtwrpmtp |
| 8 | LOCAL_MODULE_TAGS := optional |
Motorhead1991 | e444918 | 2014-09-10 19:17:06 -0700 | [diff] [blame] | 9 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasing |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 10 | LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/ |
| 11 | LOCAL_SRC_FILES = \ |
| 12 | btree.cpp \ |
| 13 | MtpDataPacket.cpp \ |
| 14 | MtpDebug.cpp \ |
| 15 | MtpDevice.cpp \ |
| 16 | MtpDeviceInfo.cpp \ |
| 17 | MtpEventPacket.cpp \ |
| 18 | MtpObjectInfo.cpp \ |
| 19 | MtpPacket.cpp \ |
| 20 | MtpProperty.cpp \ |
| 21 | MtpRequestPacket.cpp \ |
| 22 | MtpResponsePacket.cpp \ |
| 23 | MtpServer.cpp \ |
| 24 | MtpStorage.cpp \ |
| 25 | MtpStorageInfo.cpp \ |
| 26 | MtpStringBuffer.cpp \ |
| 27 | MtpUtils.cpp \ |
| 28 | mtp_MtpServer.cpp \ |
| 29 | twrpMtp.cpp \ |
| 30 | mtp_MtpDatabase.cpp \ |
| 31 | node.cpp |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 32 | LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery |
| 33 | |
Ethan Yonker | 5046857 | 2015-11-09 11:56:17 -0600 | [diff] [blame] | 34 | ifeq (,$(filter $(PLATFORM_SDK_VERSION), 23)) |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES += libstlport |
| 36 | else |
| 37 | LOCAL_SHARED_LIBRARIES += libc++ |
| 38 | endif |
Ethan Yonker | a1f3805 | 2014-09-11 08:28:51 -0500 | [diff] [blame] | 39 | |
| 40 | ifneq ($(TW_MTP_DEVICE),) |
| 41 | LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE) |
| 42 | endif |
| 43 | |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 44 | include $(BUILD_SHARED_LIBRARY) |
| 45 | |
| 46 | # Build twrpmtp binary / executable |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_MODULE := twrpmtp |
| 51 | LOCAL_MODULE_TAGS := optional |
| 52 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 53 | LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/ |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 54 | LOCAL_SRC_FILES = \ |
| 55 | btree.cpp \ |
| 56 | MtpDataPacket.cpp \ |
| 57 | MtpDebug.cpp \ |
| 58 | MtpDevice.cpp \ |
| 59 | MtpDeviceInfo.cpp \ |
| 60 | MtpEventPacket.cpp \ |
| 61 | MtpObjectInfo.cpp \ |
| 62 | MtpPacket.cpp \ |
| 63 | MtpProperty.cpp \ |
| 64 | MtpRequestPacket.cpp \ |
| 65 | MtpResponsePacket.cpp \ |
| 66 | MtpServer.cpp \ |
| 67 | MtpStorage.cpp \ |
| 68 | MtpStorageInfo.cpp \ |
| 69 | MtpStringBuffer.cpp \ |
| 70 | MtpUtils.cpp \ |
| 71 | mtp_MtpServer.cpp \ |
| 72 | twrpMtp.cpp \ |
| 73 | mtp_MtpDatabase.cpp \ |
| 74 | node.cpp |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 75 | LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 76 | include $(BUILD_EXECUTABLE) |