xmake.lua 728 B

12345678910111213141516171819202122
  1. package("debug-hpp")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/archibate/debug-hpp")
  4. set_description("printing everything including STL containers without pain")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/archibate/debug-hpp.git")
  7. add_versions("2024.09.06", "ec10419581bc49e7368a853d7c0b607ac663f05c")
  8. on_install(function (package)
  9. os.cp("debug.hpp", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <debug.hpp>
  14. void test() {
  15. debug(), "hello world";
  16. }
  17. ]]}, {configs = {languages = "cxx11"}}))
  18. end)