xmake.lua 999 B

123456789101112131415161718192021222324252627
  1. package("functionalplus")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("http://www.editgym.com/fplus-api-search/")
  4. set_description("Functional Programming Library for C++. Write concise and readable C++ code.")
  5. add_urls("https://github.com/Dobiasd/FunctionalPlus/archive/refs/tags/$(version).tar.gz",
  6. "https://github.com/Dobiasd/FunctionalPlus.git")
  7. add_versions("v0.2.22", "79378668dff6ffa8abc1abde2c2fe37dc6fe1ac040c55d5ee7886924fa6a1376")
  8. add_deps("cmake")
  9. on_install(function (package)
  10. import("package.tools.cmake").install(package)
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #include <fplus/fplus.hpp>
  15. #include <vector>
  16. bool func()
  17. {
  18. std::vector<std::string> things = {"same old", "same old"};
  19. return fplus::all_the_same(things);
  20. }
  21. ]]}, {configs = {languages = "c++17"}}))
  22. end)