Skip to content

Commit

Permalink
Update xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored Feb 2, 2025
1 parent 1f789f3 commit e0de0b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/l/libsdl3/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package("libsdl3")

add_deps("cmake", "egl-headers", "opengl-headers")

if is_plat("linux", "bsd") then
if is_plat("linux", "bsd", "cross") then
add_configs("x11", {description = "Enables X11 support (requires it on the system)", default = true, type = "boolean"})
add_configs("wayland", {description = "Enables Wayland support", default = true, type = "boolean"})
end
Expand Down Expand Up @@ -80,6 +80,7 @@ package("libsdl3")
table.insert(packagedeps, "libxext")
table.insert(packagedeps, "libx11")
table.insert(packagedeps, "xorgproto")
table.insert(packagedeps, "wayland")
elseif package:is_plat("wasm") then
-- emscripten enables USE_SDL by default which will conflict with the sdl headers
cflags = {"-sUSE_SDL=0"}
Expand Down

0 comments on commit e0de0b0

Please sign in to comment.