xmake.lua 1.1 KB

12345678910111213141516171819202122232425262728
  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.23", "5c2d28d2ba7d0cdeab9e31bbf2e7f8a9d6f2ff6111a54bfc11d1b05422096f19")
  8. add_versions("v0.2.22", "79378668dff6ffa8abc1abde2c2fe37dc6fe1ac040c55d5ee7886924fa6a1376")
  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 <fplus/fplus.hpp>
  16. #include <vector>
  17. bool func()
  18. {
  19. std::vector<std::string> things = {"same old", "same old"};
  20. return fplus::all_the_same(things);
  21. }
  22. ]]}, {configs = {languages = "c++17"}}))
  23. end)