File tree Expand file tree Collapse file tree
cmake/compile_definitions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,16 +80,18 @@ if(CUDA_FOUND)
8080 add_compile_definitions (SUNSHINE_BUILD_CUDA )
8181endif ()
8282
83- # libdrm is required for DRM (KMS), KWin ScreenCast and Wayland
84- if (${SUNSHINE_ENABLE_DRM} OR ${SUNSHINE_ENABLE_KWIN} OR ${SUNSHINE_ENABLE_WAYLAND} )
83+ # libdrm is required for DRM (KMS). Only the headers are required for Wayland,
84+ # Vulkan, and PipeWire (KWin, Portal).
85+ if (${SUNSHINE_ENABLE_DRM} OR ${SUNSHINE_ENABLE_WAYLAND} OR ${SUNSHINE_ENABLE_VULKAN}
86+ OR ${SUNSHINE_ENABLE_KWIN} OR ${SUNSHINE_ENABLE_PORTAL} )
8587 find_package (LIBDRM REQUIRED )
8688else ()
8789 set (LIBDRM_FOUND OFF )
8890endif ()
8991if (LIBDRM_FOUND)
9092 include_directories (SYSTEM ${LIBDRM_INCLUDE_DIRS} )
91- list (APPEND PLATFORM_LIBRARIES ${LIBDRM_LIBRARIES} )
9293 if (${SUNSHINE_ENABLE_DRM} )
94+ list (APPEND PLATFORM_LIBRARIES ${LIBDRM_LIBRARIES} )
9395 add_compile_definitions (SUNSHINE_BUILD_DRM )
9496 list (APPEND PLATFORM_TARGET_FILES
9597 "${CMAKE_SOURCE_DIR } /src/platform/linux/kmsgrab.cpp" )
You can’t perform that action at this time.
0 commit comments