Skip to content

Commit

Permalink
fix glfw
Browse files Browse the repository at this point in the history
  • Loading branch information
xq114 committed Feb 5, 2025
1 parent e0e45cc commit 2d97d23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/g/glfw/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package("glfw")

add_configs("glfw_include", {description = "Choose submodules enabled in glfw", default = "none", type = "string", values = {"none", "vulkan", "glu", "glext", "es2", "es3", "system"}})
add_configs("x11", {description = "Build support for X11", default = is_plat("linux"), type = "boolean"})
add_configs("wayland", {description = "Build support for Wayland", default = true, type = "boolean"})
add_configs("wayland", {description = "Build support for Wayland", default = is_plat("linux"), type = "boolean"})

if is_plat("linux") then
add_extsources("apt::libglfw3-dev", "pacman::glfw-x11")
Expand All @@ -44,7 +44,7 @@ package("glfw")
package:add("deps", "libx11", "libxrandr", "libxrender", "libxinerama", "libxfixes", "libxcursor", "libxi", "libxext")
end
if package:config("wayland") then
package:add("deps", "wayland", "wayland-protocols")
package:add("deps", "wayland", "wayland-protocols", "libxkbcommon")
end
end)

Expand Down

0 comments on commit 2d97d23

Please sign in to comment.