xmake.lua 1.3 KB

12345678910111213141516171819202122232425262728293031
  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. add_versions("0.4.1", "1fa21c0cea3060caee7612b6577c1730da470b88cbdf846fa4e3e0ff78948e54")
  9. if is_plat("linux") then
  10. add_extsources("apt::libxcb-keysyms1-dev", "pacman::xcb-util-keysyms")
  11. end
  12. if is_plat("macosx", "linux") then
  13. add_deps("m4", "pkg-config")
  14. add_deps("xcb-proto", "libxcb")
  15. end
  16. on_install("macosx", "linux", function (package)
  17. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  18. "--localstatedir=" .. package:installdir("var"),
  19. "--disable-silent-rules"}
  20. import("package.tools.autoconf").install(package, configs)
  21. end)
  22. on_test(function (package)
  23. assert(package:has_cfuncs("xcb_key_symbols_get_keycode", {includes = "xcb/xcb_keysyms.h"}))
  24. end)