xmake.lua 907 B

123456789101112131415161718192021222324
  1. package("maddy")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/progsource/maddy")
  4. set_description("C++ Markdown to HTML header-only parser library")
  5. set_license("MIT")
  6. add_urls("https://github.com/progsource/maddy/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/progsource/maddy.git")
  8. add_versions("1.3.0", "561681f8c8d2b998c153cda734107a0bc1dea4bb0df69fd813922da63fa9f3e7")
  9. add_versions("1.2.1", "b6058bce7ca32506969633ee7a4042e75b07464489f1c44be00913543cd687ef")
  10. on_install(function (package)
  11. os.cp("include", package:installdir())
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. #include <maddy/parser.h>
  16. void test() {
  17. auto var = maddy::ParserConfig();
  18. }
  19. ]]}, {configs = {languages = "c++14"}}))
  20. end)