Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bbd9f36e authored by Mike Lockwood's avatar Mike Lockwood
Browse files

MTP: add Linux host library for MTP/PTP host support.



Change-Id: Ie2ce60b957ee428a8e8db46a70c5a0ade8445007
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent b1cd67bb
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -46,3 +46,33 @@ LOCAL_CFLAGS := -DMTP_DEVICE -DMTP_HOST
include $(BUILD_STATIC_LIBRARY)

endif

ifeq ($(HOST_OS),linux)

include $(CLEAR_VARS)

LOCAL_SRC_FILES:=                                       \
                  MtpClient.cpp                         \
                  MtpCursor.cpp                         \
                  MtpDataPacket.cpp                     \
                  MtpDebug.cpp                          \
                  MtpDevice.cpp                         \
                  MtpEventPacket.cpp                    \
                  MtpDeviceInfo.cpp                     \
                  MtpObjectInfo.cpp                     \
                  MtpPacket.cpp                         \
                  MtpProperty.cpp                       \
                  MtpRequestPacket.cpp                  \
                  MtpResponsePacket.cpp                 \
                  MtpStorageInfo.cpp                    \
                  MtpStringBuffer.cpp                   \
                  MtpStorage.cpp                        \
                  MtpUtils.cpp                          \

LOCAL_MODULE:= libmtp

LOCAL_CFLAGS := -DMTP_HOST

include $(BUILD_HOST_STATIC_LIBRARY)

endif
+2 −0
Original line number Diff line number Diff line
@@ -21,7 +21,9 @@
#include <fcntl.h>
#include <sys/ioctl.h>

#ifdef MTP_DEVICE
#include <linux/usb/f_mtp.h>
#endif

#include "MtpEventPacket.h"