xmake.lua 902 B

123456789101112131415161718192021222324
  1. package("eve")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://jfalcou.github.io/eve/")
  4. set_description("Expressive Vector Engine - SIMD in C++ Goes Brrrr")
  5. set_license("BSL-1.0")
  6. add_urls("https://github.com/jfalcou/eve/archive/refs/tags/v$(version).tar.gz", {excludes = {"*.paxheader", "*.data"}})
  7. add_urls("https://github.com/jfalcou/eve.git")
  8. add_versions("2023.02.15", "7a5fb59c0e6ef3bef3e8b36d62e138d31e7f2a9f1bdfe95a8e96512b207f84c5")
  9. on_install(function (package)
  10. print(os.filedirs("*"))
  11. os.cp("include", package:installdir())
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. #include <eve/wide.hpp>
  16. void test() {
  17. eve::wide<float> x( [](auto i, auto) { return 1.f+i; } );
  18. }
  19. ]]}, {configs = {languages = "c++20"}}))
  20. end)