diff options
author | 2023-09-28 17:24:59 +0200 | |
---|---|---|
committer | 2023-09-29 01:24:59 +1000 | |
commit | 117c384d4ac65c06481f7a0631051c8ba273c0b5 (patch) | |
tree | 9aa97bb580be3bc24c50ceaa7a1463f2fbae4db7 /scripts/src/osd/sdl.lua | |
parent | 80155dfa8c8fd3ebcdb304ab97e967d276014f74 (diff) |
render/drawbgfx.cpp: Added initial support for Wayland on Linux. (#11451)
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r-- | scripts/src/osd/sdl.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index abf4a90fd97..3e749d04017 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -37,6 +37,12 @@ function maintargetosdoptions(_target,_subtarget) end end + if _OPTIONS["USE_WAYLAND"]=="1" then + links { + "wayland-egl" + } + end + if _OPTIONS["NO_USE_XINPUT"]~="1" then links { "Xext", @@ -142,6 +148,15 @@ if not _OPTIONS["NO_X11"] then end newoption { + trigger = "USE_WAYLAND", + description = "Use Wayland", + allowed = { + { "0", "Do not use Wayland (use XWayland or X11)" }, + { "1", "Use Wayland" }, + }, +} + +newoption { trigger = "NO_USE_XINPUT", description = "Disable use of Xinput", allowed = { |