xmake.lua 813 B

1234567891011121314151617181920212223
  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.2.1", "b6058bce7ca32506969633ee7a4042e75b07464489f1c44be00913543cd687ef")
  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. #include <maddy/parser.h>
  15. void test() {
  16. auto var = maddy::ParserConfig();
  17. }
  18. ]]}, {configs = {languages = "c++14"}}))
  19. end)