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 |
| 32 | LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils |
Ethan Yonker | a1f3805 | 2014-09-11 08:28:51 -0500 | [diff] [blame] | 33 | |
| 34 | ifneq ($(TW_MTP_DEVICE),) |
| 35 | LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE) |
| 36 | endif |
| 37 | |
bigbiff bigbiff | c7eee6f | 2014-09-02 18:59:01 -0400 | [diff] [blame] | 38 | include $(BUILD_SHARED_LIBRARY) |
| 39 | |
| 40 | # Build twrpmtp binary / executable |
| 41 | |
| 42 | include $(CLEAR_VARS) |
| 43 | |
| 44 | LOCAL_MODULE := twrpmtp |
| 45 | LOCAL_MODULE_TAGS := optional |
| 46 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP |
| 47 | LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/ |
| 48 | LOCAL_SRC_FILES = \ |
| 49 | btree.cpp \ |
| 50 | MtpDataPacket.cpp \ |
| 51 | MtpDebug.cpp \ |
| 52 | MtpDevice.cpp \ |
| 53 | MtpDeviceInfo.cpp \ |
| 54 | MtpEventPacket.cpp \ |
| 55 | MtpObjectInfo.cpp \ |
| 56 | MtpPacket.cpp \ |
| 57 | MtpProperty.cpp \ |
| 58 | MtpRequestPacket.cpp \ |
| 59 | MtpResponsePacket.cpp \ |
| 60 | MtpServer.cpp \ |
| 61 | MtpStorage.cpp \ |
| 62 | MtpStorageInfo.cpp \ |
| 63 | MtpStringBuffer.cpp \ |
| 64 | MtpUtils.cpp \ |
| 65 | mtp_MtpServer.cpp \ |
| 66 | twrpMtp.cpp \ |
| 67 | mtp_MtpDatabase.cpp \ |
| 68 | node.cpp |
| 69 | LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils |
| 70 | include $(BUILD_EXECUTABLE) |