aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-01-02 22:00:00 +0100
committerRechi <Rechi@users.noreply.github.com>2018-01-02 22:00:00 +0100
commit2ab36f1cce9ad369ff11fa6e64ce4efb79fa7b36 (patch)
treecb87808c0ff39b65ea18370be616c1717ddabbf5 /lib
parent2e0c0038d53fa993ebc77c9f944135bb1ce0bfa2 (diff)
[libUPnP] replace Makefile.in patch with CMakeLists.txt patch
Diffstat (limited to 'lib')
-rw-r--r--lib/libUPnP/patches/0002-platinum-add-custom-CMakeLists.txt.patch121
-rw-r--r--lib/libUPnP/patches/0002-platinum-add-custom-Makefile.in.patch126
2 files changed, 121 insertions, 126 deletions
diff --git a/lib/libUPnP/patches/0002-platinum-add-custom-CMakeLists.txt.patch b/lib/libUPnP/patches/0002-platinum-add-custom-CMakeLists.txt.patch
new file mode 100644
index 0000000000..bd2a8a9727
--- /dev/null
+++ b/lib/libUPnP/patches/0002-platinum-add-custom-CMakeLists.txt.patch
@@ -0,0 +1,121 @@
+--- /dev/null
++++ b/lib/libUPnP/CMakeLists.txt
+@@ -0,0 +1,118 @@
++set(SOURCES Platinum/Source/Core/PltAction.cpp
++ Platinum/Source/Core/PltArgument.cpp
++ Platinum/Source/Core/PltConstants.cpp
++ Platinum/Source/Core/PltCtrlPoint.cpp
++ Platinum/Source/Core/PltCtrlPointTask.cpp
++ Platinum/Source/Core/PltDatagramStream.cpp
++ Platinum/Source/Core/PltDeviceData.cpp
++ Platinum/Source/Core/PltDeviceHost.cpp
++ Platinum/Source/Core/PltEvent.cpp
++ Platinum/Source/Core/PltHttp.cpp
++ Platinum/Source/Core/PltHttpClientTask.cpp
++ Platinum/Source/Core/PltHttpServer.cpp
++ Platinum/Source/Core/PltHttpServerTask.cpp
++ Platinum/Source/Core/PltIconsData.cpp
++ Platinum/Source/Core/PltMimeType.cpp
++ Platinum/Source/Core/PltProtocolInfo.cpp
++ Platinum/Source/Core/PltService.cpp
++ Platinum/Source/Core/PltSsdp.cpp
++ Platinum/Source/Core/PltStateVariable.cpp
++ Platinum/Source/Core/PltTaskManager.cpp
++ Platinum/Source/Core/PltThreadTask.cpp
++ Platinum/Source/Core/PltUPnP.cpp
++ Platinum/Source/Devices/MediaServer/PltDidl.cpp
++ Platinum/Source/Devices/MediaServer/PltFileMediaServer.cpp
++ Platinum/Source/Devices/MediaServer/PltMediaBrowser.cpp
++ Platinum/Source/Devices/MediaServer/PltMediaCache.cpp
++ Platinum/Source/Devices/MediaServer/PltMediaItem.cpp
++ Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
++ Platinum/Source/Devices/MediaServer/ConnectionManagerSCPD.cpp
++ Platinum/Source/Devices/MediaServer/ContentDirectorySCPD.cpp
++ Platinum/Source/Devices/MediaServer/ContentDirectorywSearchSCPD.cpp
++ Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp
++ Neptune/Source/Core/Neptune.cpp
++ Neptune/Source/Core/NptAutomaticCleaner.cpp
++ Neptune/Source/Core/NptBase64.cpp
++ Neptune/Source/Core/NptBufferedStreams.cpp
++ Neptune/Source/Core/NptCommon.cpp
++ Neptune/Source/Core/NptDataBuffer.cpp
++ Neptune/Source/Core/NptDebug.cpp
++ Neptune/Source/Core/NptFile.cpp
++ Neptune/Source/Core/NptHash.cpp
++ Neptune/Source/Core/NptHttp.cpp
++ Neptune/Source/Core/NptList.cpp
++ Neptune/Source/Core/NptLogging.cpp
++ Neptune/Source/Core/NptMessaging.cpp
++ Neptune/Source/Core/NptNetwork.cpp
++ Neptune/Source/Core/NptQueue.cpp
++ Neptune/Source/Core/NptResults.cpp
++ Neptune/Source/Core/NptRingBuffer.cpp
++ Neptune/Source/Core/NptSimpleMessageQueue.cpp
++ Neptune/Source/Core/NptSockets.cpp
++ Neptune/Source/Core/NptStreams.cpp
++ Neptune/Source/Core/NptStrings.cpp
++ Neptune/Source/Core/NptSystem.cpp
++ Neptune/Source/Core/NptThreads.cpp
++ Neptune/Source/Core/NptTime.cpp
++ Neptune/Source/Core/NptTls.cpp
++ Neptune/Source/Core/NptUri.cpp
++ Neptune/Source/Core/NptUtils.cpp
++ Neptune/Source/Core/NptXml.cpp
++ Neptune/Source/System/Bsd/NptBsdSockets.cpp
++ Neptune/Source/System/StdC/NptStdcDebug.cpp
++ Neptune/Source/System/StdC/NptStdcEnvironment.cpp
++ Platinum/Source/Devices/MediaRenderer/PltMediaRenderer.cpp
++ Platinum/Source/Devices/MediaRenderer/PltMediaController.cpp
++ Platinum/Source/Devices/MediaRenderer/AVTransportSCPD.cpp
++ Platinum/Source/Devices/MediaRenderer/RdrConnectionManagerSCPD.cpp
++ Platinum/Source/Devices/MediaRenderer/RenderingControlSCPD.cpp
++ Platinum/Source/Devices/MediaConnect/X_MS_MediaReceiverRegistrarSCPD.cpp
++ Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp
++ Neptune/Source/System/Posix/NptPosixEnvironment.cpp)
++
++if(NOT CORE_SYSTEM_NAME STREQUAL windows AND NOT CORE_SYSTEM_NAME STREQUAL windowsstore)
++ list(APPEND SOURCES Neptune/Source/System/Posix/NptPosixSystem.cpp
++ Neptune/Source/System/Posix/NptSelectableMessageQueue.cpp
++ Neptune/Source/System/Posix/NptPosixQueue.cpp
++ Neptune/Source/System/Posix/NptPosixThreads.cpp
++ Neptune/Source/System/Posix/NptPosixTime.cpp
++ Neptune/Source/System/Bsd/NptBsdNetwork.cpp)
++else()
++ list(APPEND SOURCES Neptune/Source/System/Win32/NptWin32Console.cpp
++ Neptune/Source/System/Win32/NptWin32Debug.cpp
++ Neptune/Source/System/Win32/NptWin32DynamicLibraries.cpp
++ Neptune/Source/System/Win32/NptWin32MessageQueue.cpp
++ Neptune/Source/System/Win32/NptWin32Network.cpp
++ Neptune/Source/System/Win32/NptWin32Queue.cpp
++ Neptune/Source/System/Win32/NptWin32SerialPort.cpp
++ Neptune/Source/System/Win32/NptWin32System.cpp
++ Neptune/Source/System/Win32/NptWin32Threads.cpp
++ Neptune/Source/System/Win32/NptWin32Time.cpp)
++endif()
++
++if(APPLE)
++ list(APPEND SOURCES Neptune/Source/System/Apple/NptAppleAutoreleasePool.mm
++ Neptune/Source/System/Apple/NptAppleLogConfig.mm)
++endif()
++
++add_library(upnp STATIC ${SOURCES} ${HEADERS})
++target_compile_definitions(upnp PUBLIC -DNPT_CONFIG_ENABLE_LOGGING)
++target_include_directories(upnp PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
++ Platinum/Source/Core
++ Platinum/Source/Platinum
++ Platinum/Source/Devices/MediaConnect
++ Platinum/Source/Devices/MediaRenderer
++ Platinum/Source/Devices/MediaServer
++ Platinum/Source/Extras
++ Neptune/Source/Core
++ Neptune/Source/System/Posix)
++if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore)
++ target_include_directories(upnp PRIVATE Neptune/Source/System/Win32)
++endif()
++set_target_properties(upnp PROPERTIES FOLDER lib)
++source_group_by_folder(upnp)
++set(core_DEPENDS upnp ${core_DEPENDS} CACHE STRING "" FORCE)
++
++if(CORE_SYSTEM_NAME STREQUAL windowsstore)
++ set_target_properties(upnp PROPERTIES STATIC_LIBRARY_FLAGS "/ignore:4264")
++endif()
diff --git a/lib/libUPnP/patches/0002-platinum-add-custom-Makefile.in.patch b/lib/libUPnP/patches/0002-platinum-add-custom-Makefile.in.patch
deleted file mode 100644
index cc2ce2e77b..0000000000
--- a/lib/libUPnP/patches/0002-platinum-add-custom-Makefile.in.patch
+++ /dev/null
@@ -1,126 +0,0 @@
-From 17f16bff49f6353b1afc98a8f14cfcedb4673ae8 Mon Sep 17 00:00:00 2001
-From: montellese <montellese@xbmc.org>
-Date: Thu, 9 Jan 2014 21:23:53 +0100
-Subject: [PATCH 02/24] platinum: add custom Makefile.in
-
----
- lib/libUPnP/Makefile.in | 107 ++++++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 107 insertions(+)
- create mode 100644 lib/libUPnP/Makefile.in
-
-diff --git a/lib/libUPnP/Makefile.in b/lib/libUPnP/Makefile.in
-new file mode 100644
-index 0000000..03dfdd8
---- /dev/null
-+++ b/lib/libUPnP/Makefile.in
-@@ -0,0 +1,107 @@
-+ARCH=@ARCH@
-+
-+ifeq (@USE_UPNP@, 1)
-+SRCS= Neptune/Source/Core/Neptune.cpp \
-+ Neptune/Source/Core/NptAutomaticCleaner.cpp \
-+ Neptune/Source/Core/NptBase64.cpp \
-+ Neptune/Source/Core/NptBufferedStreams.cpp \
-+ Neptune/Source/Core/NptCommon.cpp \
-+ Neptune/Source/Core/NptConsole.cpp \
-+ Neptune/Source/Core/NptCrypto.cpp \
-+ Neptune/Source/Core/NptDataBuffer.cpp \
-+ Neptune/Source/Core/NptDebug.cpp \
-+ Neptune/Source/Core/NptDigest.cpp \
-+ Neptune/Source/Core/NptDynamicLibraries.cpp \
-+ Neptune/Source/Core/NptFile.cpp \
-+ Neptune/Source/Core/NptHash.cpp \
-+ Neptune/Source/Core/NptHttp.cpp \
-+ Neptune/Source/Core/NptJson.cpp \
-+ Neptune/Source/Core/NptList.cpp \
-+ Neptune/Source/Core/NptLogging.cpp \
-+ Neptune/Source/Core/NptMessaging.cpp \
-+ Neptune/Source/Core/NptNetwork.cpp \
-+ Neptune/Source/Core/NptQueue.cpp \
-+ Neptune/Source/Core/NptResults.cpp \
-+ Neptune/Source/Core/NptRingBuffer.cpp \
-+ Neptune/Source/Core/NptSimpleMessageQueue.cpp \
-+ Neptune/Source/Core/NptSockets.cpp \
-+ Neptune/Source/Core/NptStreams.cpp \
-+ Neptune/Source/Core/NptStrings.cpp \
-+ Neptune/Source/Core/NptSystem.cpp \
-+ Neptune/Source/Core/NptThreads.cpp \
-+ Neptune/Source/Core/NptTime.cpp \
-+ Neptune/Source/Core/NptTls.cpp \
-+ Neptune/Source/Core/NptUri.cpp \
-+ Neptune/Source/Core/NptUtils.cpp \
-+ Neptune/Source/Core/NptXml.cpp \
-+ Neptune/Source/Core/NptZip.cpp \
-+ Neptune/Source/System/Bsd/NptBsdNetwork.cpp \
-+ Neptune/Source/System/Bsd/NptBsdSockets.cpp \
-+ Neptune/Source/System/Posix/NptPosixQueue.cpp \
-+ Neptune/Source/System/Posix/NptPosixSystem.cpp \
-+ Neptune/Source/System/Posix/NptPosixThreads.cpp \
-+ Neptune/Source/System/Posix/NptPosixTime.cpp \
-+ Neptune/Source/System/Posix/NptSelectableMessageQueue.cpp \
-+ Neptune/Source/System/StdC/NptStdcDebug.cpp \
-+ Neptune/Source/System/StdC/NptStdcEnvironment.cpp \
-+ Platinum/Source/Core/PltAction.cpp \
-+ Platinum/Source/Core/PltArgument.cpp \
-+ Platinum/Source/Core/PltConstants.cpp \
-+ Platinum/Source/Core/PltCtrlPoint.cpp \
-+ Platinum/Source/Core/PltCtrlPointTask.cpp \
-+ Platinum/Source/Core/PltDatagramStream.cpp \
-+ Platinum/Source/Core/PltDeviceData.cpp \
-+ Platinum/Source/Core/PltDeviceHost.cpp \
-+ Platinum/Source/Core/PltEvent.cpp \
-+ Platinum/Source/Core/PltHttp.cpp \
-+ Platinum/Source/Core/PltHttpClientTask.cpp \
-+ Platinum/Source/Core/PltHttpServer.cpp \
-+ Platinum/Source/Core/PltHttpServerTask.cpp \
-+ Platinum/Source/Core/PltIconsData.cpp \
-+ Platinum/Source/Core/PltMimeType.cpp \
-+ Platinum/Source/Core/PltProtocolInfo.cpp \
-+ Platinum/Source/Core/PltService.cpp \
-+ Platinum/Source/Core/PltSsdp.cpp \
-+ Platinum/Source/Core/PltStateVariable.cpp \
-+ Platinum/Source/Core/PltTaskManager.cpp \
-+ Platinum/Source/Core/PltThreadTask.cpp \
-+ Platinum/Source/Core/PltUPnP.cpp \
-+ Platinum/Source/Devices/MediaConnect/X_MS_MediaReceiverRegistrarSCPD.cpp \
-+ Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp \
-+ Platinum/Source/Devices/MediaRenderer/AVTransportSCPD.cpp \
-+ Platinum/Source/Devices/MediaRenderer/PltMediaController.cpp \
-+ Platinum/Source/Devices/MediaRenderer/PltMediaRenderer.cpp \
-+ Platinum/Source/Devices/MediaRenderer/RdrConnectionManagerSCPD.cpp \
-+ Platinum/Source/Devices/MediaRenderer/RenderingControlSCPD.cpp \
-+ Platinum/Source/Devices/MediaServer/ConnectionManagerSCPD.cpp \
-+ Platinum/Source/Devices/MediaServer/ContentDirectorySCPD.cpp \
-+ Platinum/Source/Devices/MediaServer/ContentDirectorywSearchSCPD.cpp \
-+ Platinum/Source/Devices/MediaServer/PltDidl.cpp \
-+ Platinum/Source/Devices/MediaServer/PltFileMediaServer.cpp \
-+ Platinum/Source/Devices/MediaServer/PltMediaBrowser.cpp \
-+ Platinum/Source/Devices/MediaServer/PltMediaCache.cpp \
-+ Platinum/Source/Devices/MediaServer/PltMediaItem.cpp \
-+ Platinum/Source/Devices/MediaServer/PltMediaServer.cpp \
-+ Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp \
-+
-+ifeq ($(findstring osx,$(ARCH)),osx)
-+
-+.SUFFIXES : .m .mm
-+
-+SRCS+= Neptune/Source/System/Apple/NptAppleAutoreleasePool.mm
-+SRCS+= Neptune/Source/System/Cocoa/NptCocoaEnviroment.mm
-+
-+else
-+
-+SRCS+= Neptune/Source/System/Posix/NptPosixEnvironment.cpp
-+
-+endif
-+
-+INCLUDES=-I./Neptune/Source/Core -I./Platinum/Source/Core -I./Platinum/Source/Platinum -I./Platinum/Source/Devices/MediaConnect -I./Platinum/Source/Devices/MediaRenderer -I./Platinum/Source/Devices/MediaServer -I./Neptune/Source/System/Posix -I./Platinum/Source/Extras
-+
-+LIB=libupnp.a
-+
-+include ../../Makefile.include
-+-include $(filter %.P, $(OBJS:.o=.P))
-+
-+endif
---
-1.7.11.msysgit.0
-