xmake.lua 883 B

12345678910111213141516171819202122232425
  1. package("backportcpp")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/bitwizeshift/BackportCpp")
  4. set_description("Library of backported modern C++ types to work with C++11")
  5. set_license("MIT")
  6. add_urls("https://github.com/bitwizeshift/BackportCpp/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/bitwizeshift/BackportCpp.git")
  8. add_versions("v1.2.0", "8efded40a1d0e6674824336499d8706043a62bd8ae8aef62210c8c215f710b84")
  9. add_deps("cmake")
  10. on_install(function (package)
  11. import("package.tools.cmake").install(package)
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. #include <bpstd/string_view.hpp>
  16. void test() {
  17. bpstd::string_view view;
  18. }
  19. ]]}, {configs = {languages = "c++11"}}))
  20. end)