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.
24 lines
871 B
24 lines
871 B
package("tl_function_ref") |
|
|
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/TartanLlama/function_ref") |
|
set_description("A lightweight, non-owning reference to a callable.") |
|
set_license("CC0") |
|
|
|
set_urls("https://github.com/TartanLlama/function_ref/archive/$(version).zip", |
|
"https://github.com/TartanLlama/function_ref.git") |
|
|
|
add_versions("v1.0.0", "b3161fddbf40b41be984d5649ad6b5790ecebd0388f9db51b3160ecd006963f4") |
|
|
|
on_install(function (package) |
|
os.cp("include/tl", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
void test() |
|
{ |
|
tl::function_ref<void(void)> fr1 = []{}; |
|
} |
|
]]}, {configs = {languages = "c++14"}, includes = { "tl/function_ref.hpp"} })) |
|
end)
|
|
|