xmake.lua 1.3 KB

12345678910111213141516171819202122232425262728293031
  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. set_license("BSL-1.0")
  6. add_urls("https://github.com/Dobiasd/FunctionalPlus/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/Dobiasd/FunctionalPlus.git")
  8. add_versions("v0.2.25", "9b5e24bbc92f43b977dc83efbc173bcf07dbe07f8718fc2670093655b56fcee3")
  9. add_versions("v0.2.24", "446c63ac3f2045e7587f694501882a3d7c7b962b70bcc08deacf5777bdaaff8c")
  10. add_versions("v0.2.23", "5c2d28d2ba7d0cdeab9e31bbf2e7f8a9d6f2ff6111a54bfc11d1b05422096f19")
  11. add_versions("v0.2.22", "79378668dff6ffa8abc1abde2c2fe37dc6fe1ac040c55d5ee7886924fa6a1376")
  12. add_deps("cmake")
  13. on_install(function (package)
  14. import("package.tools.cmake").install(package)
  15. end)
  16. on_test(function (package)
  17. assert(package:check_cxxsnippets({test = [[
  18. #include <fplus/fplus.hpp>
  19. #include <vector>
  20. bool func()
  21. {
  22. std::vector<std::string> things = {"same old", "same old"};
  23. return fplus::all_the_same(things);
  24. }
  25. ]]}, {configs = {languages = "c++17"}}))
  26. end)