blob: ebf1a6d362c96c2668478226544ef0e676f29516 [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
33include $(BUILD_SHARED_LIBRARY)
34
35# Build twrpmtp binary / executable
36
37include $(CLEAR_VARS)
38
39LOCAL_MODULE := twrpmtp
40LOCAL_MODULE_TAGS := optional
41LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP
42LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic external/stlport/stlport frameworks/base/include system/core/include bionic/libc/private/
43LOCAL_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
64LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libstlport libdl libcutils libutils
65include $(BUILD_EXECUTABLE)