kdbindings: add package (#4266)

pull/4269/head
star9029 8 months ago committed by GitHub
parent 29999d3861
commit 08430a7952
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 29
      packages/k/kdbindings/xmake.lua

@ -0,0 +1,29 @@
package("kdbindings")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/KDAB/KDBindings")
set_description("Reactive programming & data binding in C++")
set_license("MIT")
add_urls("https://github.com/KDAB/KDBindings/archive/refs/tags/$(version).tar.gz",
"https://github.com/KDAB/KDBindings.git")
add_versions("v1.0.5", "4d001419809a719f8c966e9bc73f457180325655deca0a11c07c47ee112447a3")
add_deps("cmake")
on_install(function (package)
import("package.tools.cmake").install(package, {
"-DKDBindings_TESTS=OFF",
"-DKDBindings_EXAMPLES=OFF"
})
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
void test() {
KDBindings::Signal<int, int> signal;
signal.connect([](int arg1, int arg2) {});
signal.emit(0, 1);
}
]]}, {configs = {languages = "c++17"}, includes = "kdbindings/signal.h"}))
end)
Loading…
Cancel
Save