2
0

xmake.lua 871 B

123456789101112131415161718192021222324
  1. package("tl_function_ref")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/TartanLlama/function_ref")
  4. set_description("A lightweight, non-owning reference to a callable.")
  5. set_license("CC0")
  6. set_urls("https://github.com/TartanLlama/function_ref/archive/$(version).zip",
  7. "https://github.com/TartanLlama/function_ref.git")
  8. add_versions("v1.0.0", "b3161fddbf40b41be984d5649ad6b5790ecebd0388f9db51b3160ecd006963f4")
  9. on_install(function (package)
  10. os.cp("include/tl", package:installdir("include"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. void test()
  15. {
  16. tl::function_ref<void(void)> fr1 = []{};
  17. }
  18. ]]}, {configs = {languages = "c++14"}, includes = { "tl/function_ref.hpp"} }))
  19. end)