Add package cpp-lazy (#1815)

* Add package cpp-lazy

* Add tar gz and add c++11

* Update xmake.lua

---------

Co-authored-by: ruki <waruqi@gmail.com>
pull/1818/head
Marc 2 years ago committed by GitHub
parent 58d8dac474
commit 7f48b413f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      packages/c/cpp-lazy/xmake.lua

@ -0,0 +1,23 @@
package("cpp-lazy")
set_homepage("https://github.com/MarcDirven/cpp-lazy")
set_description("A fast C++11/14/17/20 header only library for lazy evaluation and function tools")
set_urls("https://github.com/MarcDirven/cpp-lazy/archive/refs/tags/v$(version).tar.gz",
"https://github.com/MarcDirven/cpp-lazy.git")
add_versions("v7.0.2", "7a5c2a42ce5c98343676d09761959b9821ec125dbff7b9f2028792c117de0b09")
add_deps("fmt")
on_install("windows", "macosx", "linux", function (package)
import("package.tools.xmake").install(package)
end)
on_test(function(package)
assert(package:check_cxxsnippets({test = [[
void test() {
int arr[]{1, 2, 3, 4};
auto mapper{lz::map(arr, [](const int i) { return i + 1; })};
}
]]}, {includes = "Lz/Map.hpp", configs = {languages = "c++11"}}))
end)
Loading…
Cancel
Save