build(Linux): Allow building with Vulkan but without Wayland (#5377)
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -220,7 +220,6 @@ if(WAYLAND_FOUND)
|
|||||||
include_directories(
|
include_directories(
|
||||||
SYSTEM
|
SYSTEM
|
||||||
${WAYLAND_INCLUDE_DIRS}
|
${WAYLAND_INCLUDE_DIRS}
|
||||||
${CMAKE_BINARY_DIR}/generated-src
|
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES} gbm)
|
list(APPEND PLATFORM_LIBRARIES ${WAYLAND_LIBRARIES} gbm)
|
||||||
@@ -324,6 +323,9 @@ if (${SUNSHINE_BUILD_FLATPAK})
|
|||||||
list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_BUILD_FLATPAK=1)
|
list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_BUILD_FLATPAK=1)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
include_directories(SYSTEM
|
||||||
|
${CMAKE_BINARY_DIR}/generated-src)
|
||||||
|
|
||||||
list(APPEND PLATFORM_TARGET_FILES
|
list(APPEND PLATFORM_TARGET_FILES
|
||||||
"${CMAKE_SOURCE_DIR}/src/platform/linux/publish.cpp"
|
"${CMAKE_SOURCE_DIR}/src/platform/linux/publish.cpp"
|
||||||
"${CMAKE_SOURCE_DIR}/src/platform/linux/graphics.h"
|
"${CMAKE_SOURCE_DIR}/src/platform/linux/graphics.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user