xmake.lua 1.0 KB

123456789101112131415161718192021222324
  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.1.0", "acaa569bfd8519872f59e07c7f37020ce853cb874f2e0a7b84e2190a781649f5")
  9. add_versions("v1.0.1", "4aec67cd6254baf1183e8a0faae691a7e0be21e888958cdc682237579804ea3d")
  10. add_versions("v1.0.0", "5f9ef542d10d5d04d296e609ae8931e09a157761c86630d71b2f397c6a205a75")
  11. on_install(function (package)
  12. os.cp("include", package:installdir())
  13. end)
  14. on_test(function (package)
  15. assert(package:check_cxxsnippets({test = [[
  16. using commata::stored_table;
  17. void test() {
  18. stored_table table;
  19. }
  20. ]]}, {configs = {languages = "c++17"}, includes = "commata/stored_table.hpp"}))
  21. end)