build(Linux): Allow building with Vulkan but without Wayland (#5377)

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2026-07-05 23:38:16 +01:00
committed by GitHub
parent 90256f6b9e
commit f7893b0b1a

View File

@ -220,7 +220,6 @@ if(WAYLAND_FOUND)
include_directories(
SYSTEM
${WAYLAND_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/generated-src
)
list(APPEND PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES} gbm)
@ -324,6 +323,9 @@ if (${SUNSHINE_BUILD_FLATPAK})
list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_BUILD_FLATPAK=1)
endif ()
include_directories(SYSTEM
${CMAKE_BINARY_DIR}/generated-src)
list(APPEND PLATFORM_TARGET_FILES
"${CMAKE_SOURCE_DIR}/src/platform/linux/publish.cpp"
"${CMAKE_SOURCE_DIR}/src/platform/linux/graphics.h"