Skip to content

Commit

Permalink
debug libxkbcommon
Browse files Browse the repository at this point in the history
  • Loading branch information
xq114 committed Feb 4, 2025
1 parent 77ab0b6 commit e0e45cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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 = false, type = "boolean"})
add_configs("wayland", {description = "Build support for Wayland", default = true, type = "boolean"})

if is_plat("linux") then
add_extsources("apt::libglfw3-dev", "pacman::glfw-x11")
Expand Down
4 changes: 3 additions & 1 deletion packages/l/libxkbcommon/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ package("libxkbcommon")
end
end)

add_deps("meson", "ninja")
add_deps("meson", "ninja", "pkg-config")

on_install("linux", function (package)
package:addenv("PATH", "bin")
Expand All @@ -45,8 +45,10 @@ package("libxkbcommon")
}

import("package.tools.meson").install(package, configs)
print(os.files(package:installdir("**")))
end)

on_test(function (package)
assert(os.vrun("pkg-config --exists xkbcommon"))
assert(package:has_cfuncs("xkb_context_new", {includes = "xkbcommon/xkbcommon.h"}))
end)

0 comments on commit e0e45cc

Please sign in to comment.