eve: add package (#2673)

* eve: add package

* Update xmake.lua

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/2680/head
star9029 1 year ago committed by GitHub
parent b8a637d01f
commit 41a051b8ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      packages/e/eve/xmake.lua

@ -0,0 +1,24 @@
package("eve")
set_kind("library", {headeronly = true})
set_homepage("https://jfalcou.github.io/eve/")
set_description("Expressive Vector Engine - SIMD in C++ Goes Brrrr")
set_license("BSL-1.0")
add_urls("https://github.com/jfalcou/eve/archive/refs/tags/v$(version).tar.gz", {excludes = {"*.paxheader", "*.data"}})
add_urls("https://github.com/jfalcou/eve.git")
add_versions("2023.02.15", "7a5fb59c0e6ef3bef3e8b36d62e138d31e7f2a9f1bdfe95a8e96512b207f84c5")
on_install(function (package)
print(os.filedirs("*"))
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <eve/wide.hpp>
void test() {
eve::wide<float> x( [](auto i, auto) { return 1.f+i; } );
}
]]}, {configs = {languages = "c++20"}}))
end)
Loading…
Cancel
Save