xmake.lua 875 B

12345678910111213141516171819202122
  1. package("commata")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://furfurylic.github.io/commata/CommataSpecification.xml")
  4. set_description("Just another header-only C++17 CSV parser")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/furfurylic/commata/archive/refs/tags/$(version)-rc.2.zip",
  7. "https://github.com/furfurylic/commata.git")
  8. add_versions("v1.0.0", "5f9ef542d10d5d04d296e609ae8931e09a157761c86630d71b2f397c6a205a75")
  9. on_install(function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. using commata::stored_table;
  15. void test() {
  16. stored_table table;
  17. }
  18. ]]}, {configs = {languages = "c++17"}, includes = "commata/stored_table.hpp"}))
  19. end)