2022-12-21 15:15:22 +00:00
|
|
|
diff --git a/src/multimedia/configure.cmake b/src/multimedia/configure.cmake
|
2024-12-07 15:54:42 +00:00
|
|
|
index fd69e8186..23657d9f5 100644
|
2022-12-21 15:15:22 +00:00
|
|
|
--- a/src/multimedia/configure.cmake
|
|
|
|
+++ b/src/multimedia/configure.cmake
|
2024-12-07 15:54:42 +00:00
|
|
|
@@ -65,27 +65,6 @@ if(TARGET EGL::EGL)
|
2024-11-02 18:03:44 +00:00
|
|
|
endif()
|
|
|
|
qt_find_package(EGL PROVIDED_TARGETS EGL::EGL)
|
|
|
|
|
2024-12-07 15:54:42 +00:00
|
|
|
-# If FFMPEG_DIR is specified, we require FFmpeg to be present. This makes
|
|
|
|
-# configuration problems easier to detect, and reduces risk of silent
|
|
|
|
-# fallback to native backends.
|
|
|
|
-if (DEFINED FFMPEG_DIR)
|
|
|
|
- set(ffmpeg_required REQUIRED)
|
|
|
|
-endif()
|
2024-11-02 18:03:44 +00:00
|
|
|
-
|
2024-12-07 15:54:42 +00:00
|
|
|
-qt_find_package(FFmpeg OPTIONAL_COMPONENTS AVCODEC AVFORMAT AVUTIL SWRESAMPLE SWSCALE PROVIDED_TARGETS FFmpeg::avcodec FFmpeg::avformat FFmpeg::avutil FFmpeg::swresample FFmpeg::swscale MODULE_NAME multimedia QMAKE_LIB ffmpeg ${ffmpeg_required})
|
2024-11-02 18:03:44 +00:00
|
|
|
-qt_find_package_extend_sbom(
|
|
|
|
- TARGETS
|
|
|
|
- FFmpeg::avcodec
|
|
|
|
- FFmpeg::avformat
|
|
|
|
- FFmpeg::avutil
|
|
|
|
- FFmpeg::swresample
|
|
|
|
- FFmpeg::swscale
|
|
|
|
- ATTRIBUTION_FILE_DIR_PATHS
|
|
|
|
- # Need to pass an absolute path here, otherwise the file will be relative to the root of
|
|
|
|
- # the source tree, not the current dir, because system libraries are processed in the
|
|
|
|
- # source root directory.
|
|
|
|
- ${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/ffmpeg
|
|
|
|
-)
|
|
|
|
qt_find_package(PipeWire PROVIDED_TARGETS PipeWire::PipeWire MODULE_NAME multimedia QMAKE_LIB pipewire)
|
2023-09-28 13:44:21 +00:00
|
|
|
qt_find_package(VAAPI COMPONENTS VA DRM PROVIDED_TARGETS VAAPI::VAAPI MODULE_NAME multimedia QMAKE_LIB vaapi)
|
2024-11-02 18:03:44 +00:00
|
|
|
|
2024-12-07 15:54:42 +00:00
|
|
|
@@ -138,7 +117,7 @@ qt_feature("ffmpeg" PRIVATE
|
2022-12-21 15:15:22 +00:00
|
|
|
LABEL "FFmpeg"
|
|
|
|
ENABLE INPUT_ffmpeg STREQUAL 'yes'
|
|
|
|
DISABLE INPUT_ffmpeg STREQUAL 'no'
|
|
|
|
- CONDITION FFmpeg_FOUND AND (APPLE OR WIN32 OR ANDROID OR QNX OR QT_FEATURE_pulseaudio)
|
|
|
|
+ CONDITION UNIX OR WIN32
|
|
|
|
)
|
2024-11-02 18:03:44 +00:00
|
|
|
qt_feature("pipewire" PRIVATE
|
|
|
|
LABEL "PipeWire"
|