Skip to content

Commit

Permalink
Fix building for glfw and wayland (#3151)
Browse files Browse the repository at this point in the history
Co-authored-by: Julian Sikorski <[email protected]>
  • Loading branch information
belegdol and belegdol authored Jul 31, 2023
1 parent 2d66d78 commit 8b6a6bd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
20 changes: 13 additions & 7 deletions scripts/geometryv.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,19 @@ project ("geometryv")
links { "glfw3" }

configuration { "linux or freebsd" }
links {
"Xrandr",
"Xinerama",
"Xi",
"Xxf86vm",
"Xcursor",
}
if _OPTIONS["with-wayland"] then
links {
"wayland-egl",
}
else
links {
"Xrandr",
"Xinerama",
"Xi",
"Xxf86vm",
"Xcursor",
}
end

configuration { "osx*" }
linkoptions {
Expand Down
20 changes: 13 additions & 7 deletions scripts/texturev.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,19 @@ project ("texturev")
links { "glfw3" }

configuration { "linux or freebsd" }
links {
"Xrandr",
"Xinerama",
"Xi",
"Xxf86vm",
"Xcursor",
}
if _OPTIONS["with-wayland"] then
links {
"wayland-egl",
}
else
links {
"Xrandr",
"Xinerama",
"Xi",
"Xxf86vm",
"Xcursor",
}
end

configuration { "osx*" }
linkoptions {
Expand Down

0 comments on commit 8b6a6bd

Please sign in to comment.