blob: 2040425573a1ac04895521faae7389147e6187f7 [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
Motorhead1991e4449182014-09-10 19:17:06 -07009LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -fno-strict-aliasing
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040010LOCAL_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
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050032LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery
33
34ifneq ($(wildcard external/stlport/Android.mk),)
35 LOCAL_SHARED_LIBRARIES += libstlport
36else
37 LOCAL_SHARED_LIBRARIES += libc++
38endif
Ethan Yonkera1f38052014-09-11 08:28:51 -050039
40ifneq ($(TW_MTP_DEVICE),)
41 LOCAL_CFLAGS += -DUSB_MTP_DEVICE=$(TW_MTP_DEVICE)
42endif
43
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040044include $(BUILD_SHARED_LIBRARY)
45
46# Build twrpmtp binary / executable
47
48include $(CLEAR_VARS)
49
50LOCAL_MODULE := twrpmtp
51LOCAL_MODULE_TAGS := optional
52LOCAL_CFLAGS = -D_FILE_OFFSET_BITS=64 -DMTP_DEVICE -DMTP_HOST -DTWRPMTP
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050053LOCAL_C_INCLUDES += $(LOCAL_PATH) bionic frameworks/base/include system/core/include bionic/libc/private/
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040054LOCAL_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 Yonkerc798c9c2015-10-09 11:15:26 -050075LOCAL_SHARED_LIBRARIES += libz libc libusbhost libstdc++ libdl libcutils libutils libaosprecovery
bigbiff bigbiffc7eee6f2014-09-02 18:59:01 -040076include $(BUILD_EXECUTABLE)