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,17 @@ 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} OR ${SUNSHINE_ENABLE_KWIN} OR ${SUNSHINE_ENABLE_PORTAL} )
8586 find_package (LIBDRM REQUIRED )
8687else ()
8788 set (LIBDRM_FOUND OFF )
8889endif ()
8990if (LIBDRM_FOUND)
9091 include_directories (SYSTEM ${LIBDRM_INCLUDE_DIRS} )
91- list (APPEND PLATFORM_LIBRARIES ${LIBDRM_LIBRARIES} )
9292 if (${SUNSHINE_ENABLE_DRM} )
93+ list (APPEND PLATFORM_LIBRARIES ${LIBDRM_LIBRARIES} )
9394 add_compile_definitions (SUNSHINE_BUILD_DRM )
9495 list (APPEND PLATFORM_TARGET_FILES
9596 "${CMAKE_SOURCE_DIR } /src/platform/linux/kmsgrab.cpp" )
You can’t perform that action at this time.
0 commit comments