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 |
| 9 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST |
| 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 |
| 33 | include $(BUILD_SHARED_LIBRARY) |
| 34 | |
| 35 | # Build twrpmtp binary / executable |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_MODULE := twrpmtp |
| 40 | LOCAL_MODULE_TAGS := optional |
| 41 | LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP |
| 42 | LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/ |
| 43 | LOCAL_SRC_FILES = \ |
| 44 | btree.cpp \ |
| 45 | MtpDataPacket.cpp \ |
| 46 | MtpDebug.cpp \ |
| 47 | MtpDevice.cpp \ |
| 48 | MtpDeviceInfo.cpp \ |
| 49 | MtpEventPacket.cpp \ |
| 50 | MtpObjectInfo.cpp \ |
| 51 | MtpPacket.cpp \ |
| 52 | MtpProperty.cpp \ |
| 53 | MtpRequestPacket.cpp \ |
| 54 | MtpResponsePacket.cpp \ |
| 55 | MtpServer.cpp \ |
| 56 | MtpStorage.cpp \ |
| 57 | MtpStorageInfo.cpp \ |
| 58 | MtpStringBuffer.cpp \ |
| 59 | MtpUtils.cpp \ |
| 60 | mtp_MtpServer.cpp \ |
| 61 | twrpMtp.cpp \ |
| 62 | mtp_MtpDatabase.cpp \ |
| 63 | node.cpp |
| 64 | LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils |
| 65 | include $(BUILD_EXECUTABLE) |