summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Julian Sikorski <belegdol+github@gmail.com>2024-03-30 16:52:05 +0100
committer GitHub <noreply@github.com>2024-03-31 02:52:05 +1100
commit7018e93c327701b567103ab2614ddc0bc5cb7401 (patch)
treebb168fd98dc9a91c75eddab16148f7072307a0c0 /scripts
parent926fe9bc8204f158263da5935055b906bbaa0830 (diff)
Add C compiler flags for Wayland EGL from pkgconfig to OSD build options on Linux. (#12194)
This will hopefully fix compiling on openSUSE where Wayland headers are in /usr/include/wayland.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/osd/sdl_cfg.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua
index 17132ad814a..75f294a78b6 100644
--- a/scripts/src/osd/sdl_cfg.lua
+++ b/scripts/src/osd/sdl_cfg.lua
@@ -54,6 +54,11 @@ if _OPTIONS["USE_WAYLAND"]=="1" then
defines {
"SDLMAME_USE_WAYLAND",
}
+ if _OPTIONS["targetos"]=="linux" then
+ buildoptions {
+ backtick(pkgconfigcmd() .. " --cflags wayland-egl"),
+ }
+ end
end
if _OPTIONS["NO_USE_XINPUT"]=="1" then