blob: 683999d316bc7e56ee27ef5b38de04eaf84e336d [file] [log] [blame]
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -04001LOCAL_PATH := $(call my-dir)
2
3# Build libtwrpmtp library
4
5include $(CLEAR_VARS)
6
7LOCAL_MODULE := libtwrpmtp
8LOCAL_MODULE_TAGS := optional
9LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST
10LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/
11LOCAL_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
32LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils
Ethan Yonkera1f38052014-09-11 08:28:51 -050033
34ifneq ($(TW_MTP_DEVICE),)
35 LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE)
36endif
37
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040038include $(BUILD_SHARED_LIBRARY)
39
40# Build twrpmtp binary / executable
41
42include $(CLEAR_VARS)
43
44LOCAL_MODULE := twrpmtp
45LOCAL_MODULE_TAGS := optional
46LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP
47LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/
48LOCAL_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
69LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils
70include $(BUILD_EXECUTABLE)