Skip to content

Commit

Permalink
add tuplet (#2324)
Browse files Browse the repository at this point in the history
  • Loading branch information
xq114 authored Jul 15, 2023
1 parent 568815b commit 31388da
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/t/tuplet/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package("tuplet")

set_kind("library", {headeronly = true})
set_homepage("https://github.com/codeinred/tuplet")
set_description("A fast, simple tuple implementation that implements tuple as an aggregate")
set_license("BSL-1.0")

add_urls("https://github.com/codeinred/tuplet/archive/refs/tags/$(version).tar.gz",
"https://github.com/codeinred/tuplet.git")
add_versions("v2.1.1", "2df403ffeed38a9687a3f2a7d2a68419ba029f519244e9bcd30caa0e8ec2ead3")

add_deps("cmake")
on_install(function (package)
import("package.tools.cmake").install(package, {"-DBUILD_TESTING=OFF"})
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <string>
void test() {
tuplet::tuple tup = {1, 2, std::string("Hello, world!")};
}
]]}, {configs = {languages = "c++17"}, includes = "tuplet/tuple.hpp"}))
end)

0 comments on commit 31388da

Please sign in to comment.