mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 13:02:33 +01:00
Add option to use wayland on linux, enabled by default
This commit is contained in:
@@ -43,6 +43,7 @@ option(BGFX_INSTALL "Create installation target." ON)
|
|||||||
cmake_dependent_option(
|
cmake_dependent_option(
|
||||||
BGFX_INSTALL_EXAMPLES "Install examples and their runtimes." OFF "BGFX_INSTALL;BGFX_BUILD_EXAMPLES" OFF
|
BGFX_INSTALL_EXAMPLES "Install examples and their runtimes." OFF "BGFX_INSTALL;BGFX_BUILD_EXAMPLES" OFF
|
||||||
)
|
)
|
||||||
|
cmake_dependent_option(BGFX_WITH_WAYLAND "Use Wayland backend." ON "CMAKE_SYSTEM_NAME STREQUAL 'Linux'" OFF)
|
||||||
option(BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON)
|
option(BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON)
|
||||||
option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON)
|
option(BGFX_CONFIG_MULTITHREADED "Build bgfx with multithreaded configuration" ON)
|
||||||
option(BGFX_CONFIG_RENDERER_WEBGPU "Enable the webgpu renderer" OFF)
|
option(BGFX_CONFIG_RENDERER_WEBGPU "Enable the webgpu renderer" OFF)
|
||||||
|
|||||||
@@ -85,6 +85,10 @@ if(NOT ${BGFX_CONFIG_DEFAULT_MAX_ENCODERS} STREQUAL "")
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BGFX_WITH_WAYLAND)
|
||||||
|
target_compile_definitions(bgfx PRIVATE "WL_EGL_PLATFORM=1")
|
||||||
|
endif()
|
||||||
|
|
||||||
set(BGFX_CONFIG_OPTIONS "")
|
set(BGFX_CONFIG_OPTIONS "")
|
||||||
list(
|
list(
|
||||||
APPEND
|
APPEND
|
||||||
|
|||||||
Reference in New Issue
Block a user