xmake.lua 789 B

12345678910111213141516171819202122
  1. package("choc")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/Tracktion/choc")
  4. set_description("A collection of header only classes, permissively licensed, to provide basic useful tasks with the bare-minimum of dependencies.")
  5. set_license("ISC")
  6. add_urls("https://github.com/Tracktion/choc.git")
  7. add_versions("2025.01.27", "6dfac9fec70eae9159e64dc55538d40a2171175e")
  8. on_install(function (package)
  9. os.cp("*", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <text/choc_StringUtilities.h>
  14. void test() {
  15. choc::text::isDigit('1');
  16. }
  17. ]]}, {configs = {languages = "cxx17"}}))
  18. end)