etl: add package (#2524)

* etl: add package

* fix test
pull/2531/head
star9029 1 year ago committed by GitHub
parent 50c36413d9
commit fa3700edfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      packages/e/etl/xmake.lua

@ -0,0 +1,25 @@
package("etl")
set_kind("library", {headeronly = true})
set_homepage("https://www.etlcpp.com")
set_description("Embedded Template Library")
set_license("MIT")
add_urls("https://github.com/ETLCPP/etl/archive/refs/tags/$(version).tar.gz",
"https://github.com/ETLCPP/etl.git")
add_versions("20.38.0", "7e29ce81a2a2d5826286502a2ad5bde1f4b591d2c9e0ef7ccc335e75445223cd")
add_deps("cmake")
on_install(function (package)
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <etl/array.h>
void test() {
etl::array<int, 10> data = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
}
]]}, {configs = {languages = "c++11"}}))
end)
Loading…
Cancel
Save