xmake.lua 532 B

123456789101112131415
  1. package("utf8.h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/sheredom/utf8.h")
  4. set_description("single header utf8 string functions for C and C++")
  5. add_urls("https://github.com/sheredom/utf8.h.git")
  6. add_versions("2022.07.04", "4e4d828174c35e4564c31a9e35580c299c69a063")
  7. on_install(function (package)
  8. os.cp("*.h", package:installdir("include"))
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("utf8casecmp", {includes = "utf8.h"}))
  12. end)