variant-lite: add package (#2470)

pull/2473/head
star9029 1 year ago committed by GitHub
parent 2e0536c5f0
commit 0fabb13eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 21
      packages/v/variant-lite/xmake.lua

@ -0,0 +1,21 @@
package("variant-lite")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/martinmoene/variant-lite")
set_description("variant lite - A C++17-like variant, a type-safe union for C++98, C++11 and later in a single-file header-only library")
set_license("BSL-1.0")
add_urls("https://github.com/martinmoene/variant-lite.git")
add_versions("2022.12.03", "5015e841cf143487f2d7e2f619b618d455658fab")
on_install(function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <nonstd/variant.hpp>
void test() {
nonstd::variant<char, int, long> var;
}
]]}))
end)
Loading…
Cancel
Save