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.
27 lines
986 B
27 lines
986 B
package("nod") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/fr00b0/nod") |
|
set_description("Small, header only signals and slots C++11 library.") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/fr00b0/nod/archive/refs/tags/$(version).tar.gz", |
|
"https://github.com/fr00b0/nod.git") |
|
add_versions("v0.5.4", "21ec7e5ea5af9fc823f1a36f6981e307321f7b4f3fd8362620a7f3529fc19aed") |
|
|
|
on_install(function (package) |
|
os.cp("include/*", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:check_cxxsnippets({test = [[ |
|
#include <iostream> |
|
void test() |
|
{ |
|
nod::signal<void()> signal; |
|
signal.connect([](){ |
|
std::cout << "Hello, World!" << std::endl; |
|
}); |
|
signal(); |
|
} |
|
]]}, {configs = {languages = "c++11"}, includes = { "nod/nod.hpp" } })) |
|
end)
|
|
|