xmake.lua 762 B

12345678910111213141516171819202122
  1. package("mustache")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/kainjow/Mustache")
  4. set_description("Mustache text templates for modern C++")
  5. set_license("BSL-1.0")
  6. add_urls("https://github.com/kainjow/Mustache.git")
  7. add_versions("2021.12.10", "04277d5552c6e46bee41a946b7d175a660ea1b3d")
  8. on_install(function (package)
  9. os.cp("mustache.hpp", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <mustache.hpp>
  14. using namespace kainjow::mustache;
  15. void test() {
  16. mustache tmpl{"Hello {{what}}!"};
  17. }
  18. ]]}, {configs = {languages = "c++11"}}))
  19. end)