summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/osd/sdl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/src/osd/sdl.lua')
-rw-r--r--scripts/src/osd/sdl.lua15
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 = {