diff options
-rw-r--r-- | lib/UnrarXLib/CMakeLists.txt | 52 | ||||
-rw-r--r-- | lib/addons/library.kodi.adsp/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/addons/library.kodi.guilib/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/addons/library.xbmc.addon/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/addons/library.xbmc.codec/CMakeLists.txt | 8 | ||||
-rw-r--r-- | lib/addons/library.xbmc.pvr/CMakeLists.txt | 10 | ||||
-rw-r--r-- | lib/libUPnP/CMakeLists.txt | 111 | ||||
-rw-r--r-- | lib/libexif/CMakeLists.txt | 10 |
8 files changed, 215 insertions, 0 deletions
diff --git a/lib/UnrarXLib/CMakeLists.txt b/lib/UnrarXLib/CMakeLists.txt new file mode 100644 index 0000000000..7c6c90bb00 --- /dev/null +++ b/lib/UnrarXLib/CMakeLists.txt @@ -0,0 +1,52 @@ +set(SOURCES archive.cpp + arcread.cpp + cmddata.cpp + consio.cpp + crc.cpp + crypt.cpp + encname.cpp + errhnd.cpp + extinfo.cpp + extract.cpp + filcreat.cpp + file.cpp + filefn.cpp + filestr.cpp + find.cpp + getbits.cpp + global.cpp + int64.cpp + isnt.cpp + log.cpp + match.cpp + options.cpp + pathfn.cpp + rar.cpp + rarvm.cpp + rawread.cpp + rdwrfn.cpp + recvol.cpp + resource.cpp + rijndael.cpp + rs.cpp + savepos.cpp + scantree.cpp + sha1.cpp + strfn.cpp + strlist.cpp + system.cpp + timefn.cpp + ulinks.cpp + unicode.cpp + unpack.cpp + volume.cpp) + +core_add_library(unrarxlib) + +if(CORE_SYSTEM_NAME STREQUAL windows) + target_compile_definitions(unrarxlib PRIVATE -D_XBMC) + add_precompiled_header(unrarxlib rar.hpp rar.cpp + EXCLUDE_SOURCES consio.cpp global.cpp) +else() + target_compile_definitions(unrarxlib PRIVATE -DSILENT) +endif() diff --git a/lib/addons/library.kodi.adsp/CMakeLists.txt b/lib/addons/library.kodi.adsp/CMakeLists.txt new file mode 100644 index 0000000000..ecaaf761a0 --- /dev/null +++ b/lib/addons/library.kodi.adsp/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SOURCES libKODI_adsp.cpp) + +core_add_library(KODI_adsp NO_MAIN_DEPENDS) +set_target_properties(KODI_adsp PROPERTIES POSITION_INDEPENDENT_CODE True) +target_include_directories(KODI_adsp PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CORE_SOURCE_DIR}/xbmc/addons/include + ${CORE_SOURCE_DIR}/xbmc) diff --git a/lib/addons/library.kodi.guilib/CMakeLists.txt b/lib/addons/library.kodi.guilib/CMakeLists.txt new file mode 100644 index 0000000000..66b5cc9b5f --- /dev/null +++ b/lib/addons/library.kodi.guilib/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SOURCES libKODI_guilib.cpp) + +core_add_library(KODI_guilib NO_MAIN_DEPENDS) +set_target_properties(KODI_guilib PROPERTIES POSITION_INDEPENDENT_CODE True) +target_include_directories(KODI_guilib PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CORE_SOURCE_DIR}/xbmc/addons/include + ${CORE_SOURCE_DIR}/xbmc) diff --git a/lib/addons/library.xbmc.addon/CMakeLists.txt b/lib/addons/library.xbmc.addon/CMakeLists.txt new file mode 100644 index 0000000000..139260677d --- /dev/null +++ b/lib/addons/library.xbmc.addon/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SOURCES libXBMC_addon.cpp) + +core_add_library(XBMC_addon NO_MAIN_DEPENDS) +set_target_properties(XBMC_addon PROPERTIES POSITION_INDEPENDENT_CODE True) +target_include_directories(XBMC_addon PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CORE_SOURCE_DIR}/xbmc/addons/include + ${CORE_SOURCE_DIR}/xbmc) diff --git a/lib/addons/library.xbmc.codec/CMakeLists.txt b/lib/addons/library.xbmc.codec/CMakeLists.txt new file mode 100644 index 0000000000..b1f7065a6b --- /dev/null +++ b/lib/addons/library.xbmc.codec/CMakeLists.txt @@ -0,0 +1,8 @@ +set(SOURCES libXBMC_codec.cpp) + +core_add_library(XBMC_codec NO_MAIN_DEPENDS) +set_target_properties(XBMC_codec PROPERTIES POSITION_INDEPENDENT_CODE True) +target_include_directories(XBMC_codec PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CORE_SOURCE_DIR}/xbmc/addons/include + ${CORE_SOURCE_DIR}/xbmc) diff --git a/lib/addons/library.xbmc.pvr/CMakeLists.txt b/lib/addons/library.xbmc.pvr/CMakeLists.txt new file mode 100644 index 0000000000..b67bba3efb --- /dev/null +++ b/lib/addons/library.xbmc.pvr/CMakeLists.txt @@ -0,0 +1,10 @@ +set(SOURCES libXBMC_pvr.cpp) + +core_add_library(XBMC_pvr NO_MAIN_DEPENDS) +set_target_properties(XBMC_pvr PROPERTIES POSITION_INDEPENDENT_CODE True) +target_include_directories(XBMC_pvr PRIVATE + ${CMAKE_CURRENT_SOURCE_DIR} + ${CORE_SOURCE_DIR}/addons/library.xbmc.addon + ${CORE_SOURCE_DIR}/xbmc + ${CORE_SOURCE_DIR}/xbmc/addons/include + ${CORE_SOURCE_DIR}/xbmc/cores/VideoPlayer/DVDDemuxers) diff --git a/lib/libUPnP/CMakeLists.txt b/lib/libUPnP/CMakeLists.txt new file mode 100644 index 0000000000..29476f557a --- /dev/null +++ b/lib/libUPnP/CMakeLists.txt @@ -0,0 +1,111 @@ +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) + +include_directories(Neptune/Source/Core + Platinum/Source/Core + Platinum/Source/Platinum + Platinum/Source/Devices/MediaConnect + Platinum/Source/Devices/MediaRenderer + Platinum/Source/Devices/MediaServer + Neptune/Source/System/Posix + Platinum/Source/Extras) + +if(NOT CORE_SYSTEM_NAME STREQUAL windows) + 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/NptWin32File.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) + include_directories(Neptune/Source/System/Win32) +endif() + +if(CORE_SYSTEM_NAME STREQUAL darwin OR CORE_SYSTEM_NAME STREQUAL ios) + list(APPEND SOURCES Neptune/Source/System/Apple/NptAppleAutoreleasePool.mm + Neptune/Source/System/Apple/NptAppleLogConfig.mm) +endif() + +add_definitions(-DNPT_CONFIG_ENABLE_LOGGING) + +core_add_library(upnp) diff --git a/lib/libexif/CMakeLists.txt b/lib/libexif/CMakeLists.txt new file mode 100644 index 0000000000..cab539fef2 --- /dev/null +++ b/lib/libexif/CMakeLists.txt @@ -0,0 +1,10 @@ +set(SOURCES ExifParse.cpp + IptcParse.cpp + JpegParse.cpp + libexif.cpp) + +set(CMAKE_POSITION_INDEPENDENT_CODE 1) + +add_definitions(-D_LINUX -D_DLL) + +core_add_library(exif NO_MAIN_DEPENDS) |