2
0

xmake.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. package("xcb-util-keysyms")
  2. set_homepage("https://xcb.freedesktop.org")
  3. set_description("X.Org: XML-XCB protocol descriptions for libxcb code generation")
  4. set_urls("https://xcb.freedesktop.org/dist/xcb-util-keysyms-$(version).tar.gz")
  5. add_versions("0.3.8", "99fcf9273f9866c1682bcf8a51df41296fe239e0f1df14f55350a33fd0e948b0")
  6. add_versions("0.3.9", "9fda86f6a26be8872f33c10f47505c40c9305758d320b170aa976b7201533a42")
  7. add_versions("0.4.0", "0807cf078fbe38489a41d755095c58239e1b67299f14460dec2ec811e96caa96")
  8. if is_plat("linux") then
  9. add_extsources("apt::libxcb-keysyms1-dev", "pacman::xcb-util-keysyms")
  10. end
  11. if is_plat("macosx", "linux") then
  12. add_deps("m4", "pkg-config")
  13. add_deps("xcb-proto", "libxcb")
  14. end
  15. on_install("macosx", "linux", function (package)
  16. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  17. "--localstatedir=" .. package:installdir("var"),
  18. "--disable-silent-rules"}
  19. import("package.tools.autoconf").install(package, configs)
  20. end)
  21. on_test(function (package)
  22. assert(package:has_cfuncs("xcb_key_symbols_get_keycode", {includes = "xcb/xcb_keysyms.h"}))
  23. end)