eventpp: add package (#2756)

pull/2758/head
star9029 1 year ago committed by GitHub
parent 788f38f50a
commit 59f296dc4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      packages/e/eventpp/xmake.lua

@ -0,0 +1,25 @@
package("eventpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/wqking/eventpp")
set_description("Event Dispatcher and callback list for C++")
set_license("Apache-2.0")
add_urls("https://github.com/wqking/eventpp/archive/refs/tags/$(version).tar.gz",
"https://github.com/wqking/eventpp.git")
add_versions("v0.1.3", "d87aba67223fd9aced2ba55eb82bd534007e43e1b919106a53fcd3070fa125ea")
add_deps("cmake")
on_install(function (package)
import("package.tools.cmake").install(package, {"-DEVENTPP_INSTALL=ON"})
end)
on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <eventpp/callbacklist.h>
void test() {
eventpp::CallbackList<void (const std::string &, const bool)> callbackList;
}
]]}, {configs = {languages = "c++11"}}))
end)
Loading…
Cancel
Save