Warning, /graphics/digikam/core/libs/video/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #
0002 # SPDX-FileCopyrightText: 2010-2024, Gilles Caulier, <caulier dot gilles at gmail dot com>
0003 #
0004 # SPDX-License-Identifier: BSD-3-Clause
0005 #
0006 
0007 APPLY_COMMON_POLICIES()
0008 
0009 include_directories($<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Widgets,INTERFACE_INCLUDE_DIRECTORIES>
0010                     $<TARGET_PROPERTY:Qt${QT_VERSION_MAJOR}::Core,INTERFACE_INCLUDE_DIRECTORIES>
0011 
0012                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::I18n,INTERFACE_INCLUDE_DIRECTORIES>
0013                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::ConfigCore,INTERFACE_INCLUDE_DIRECTORIES>
0014                     $<TARGET_PROPERTY:KF${QT_VERSION_MAJOR}::Service,INTERFACE_INCLUDE_DIRECTORIES>
0015 )
0016 
0017 ###
0018 
0019 set(libvideotoolscommon_SRCS
0020     ${CMAKE_CURRENT_SOURCE_DIR}/manager/vidslidesettings.cpp
0021     ${CMAKE_CURRENT_SOURCE_DIR}/manager/ffmpegbinary.cpp
0022     ${CMAKE_CURRENT_SOURCE_DIR}/manager/ffmpeglauncher.cpp
0023     ${CMAKE_CURRENT_SOURCE_DIR}/manager/vidslidetask.cpp
0024     ${CMAKE_CURRENT_SOURCE_DIR}/manager/vidslidethread.cpp
0025     ${CMAKE_CURRENT_SOURCE_DIR}/osd/frameosd.cpp
0026     ${CMAKE_CURRENT_SOURCE_DIR}/osd/frameosdsettings.cpp
0027     ${CMAKE_CURRENT_SOURCE_DIR}/osd/frameosdwidget.cpp
0028 )
0029 
0030 if(ENABLE_MEDIAPLAYER)
0031 
0032     set(libvideotoolscommon_SRCS
0033         ${libvideotoolscommon_SRCS}
0034         ${CMAKE_CURRENT_SOURCE_DIR}/ffmpegconfighelper.cpp
0035         ${CMAKE_CURRENT_SOURCE_DIR}/player/vidplayerdlg.cpp
0036         ${CMAKE_CURRENT_SOURCE_DIR}/player/audplayerwdg.cpp
0037     )
0038 
0039 endif()
0040 
0041 # Used by digikamcore
0042 add_library(core_videotoolscommon_obj OBJECT ${libvideotoolscommon_SRCS})
0043 
0044 target_compile_definitions(core_videotoolscommon_obj
0045                            PRIVATE
0046                            digikamcore_EXPORTS
0047 )
0048 
0049 ###
0050 
0051 if(ENABLE_MEDIAPLAYER)
0052 
0053     if(Qt6_FOUND AND ENABLE_QTMULTIMEDIA)
0054 
0055         # NOTE: this part depends of QtMultimedia
0056 
0057         set(libvideotools_SRCS
0058             ${CMAKE_CURRENT_SOURCE_DIR}/player/qtmm/mediaplayerview.cpp
0059             ${CMAKE_CURRENT_SOURCE_DIR}/player/qtmm/slidevideo.cpp
0060         )
0061 
0062     else()
0063 
0064         # NOTE: this part depends of QtAVPlayer
0065 
0066         set(libvideotools_SRCS
0067             ${CMAKE_CURRENT_SOURCE_DIR}/player/QtAVPlayer/daudioplayer.cpp
0068             ${CMAKE_CURRENT_SOURCE_DIR}/player/QtAVPlayer/dvideowidget.cpp
0069             ${CMAKE_CURRENT_SOURCE_DIR}/player/QtAVPlayer/mediaplayerview.cpp
0070             ${CMAKE_CURRENT_SOURCE_DIR}/player/QtAVPlayer/slidevideo.cpp
0071         )
0072 
0073     endif()
0074 
0075     # Used by digikamcore
0076     add_library(core_videotools_obj OBJECT ${libvideotools_SRCS})
0077 
0078     target_compile_definitions(core_videotools_obj
0079                                PRIVATE
0080                                digikamcore_EXPORTS
0081     )
0082 
0083     target_compile_definitions(core_videotools_obj
0084                                PRIVATE
0085                                ${MEDIAPLAYER_DEFINITIONS}
0086     )
0087 
0088     # ---
0089 
0090     if (NOT ENABLE_QTMULTIMEDIA)
0091 
0092         add_subdirectory(QtAVPlayer)
0093 
0094     endif()
0095 
0096 endif()