package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

18 lines
873 B

package("tiny-optional")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/Sedeniono/tiny-optional")
set_description("Replacement for std::optional that does not unnecessarily waste memory")
set_license("BSL-1.0")
add_urls("https://github.com/Sedeniono/tiny-optional/archive/refs/tags/$(version).tar.gz",
"https://github.com/Sedeniono/tiny-optional.git")
add_versions("v1.2.0", "d4ce47d0c9c4f89ab41e4e0b96d25bfb98c0cc02da3d7b312337e5e4e6e1c9e8")
on_install("windows|!arm*", "linux|!arm*", "macosx|!arm*", "bsd|!arm*", "mingw|!arm*", "msys|!arm*", "android|!arm*", function (package)
os.cp("include", package:installdir())
end)
on_test(function (package)
assert(package:has_cxxtypes("tiny::optional<int>", {configs = {languages = "c++17"}, includes = "tiny/optional.h"}))
end)