From 59f296dc4c5d79b96651c2c3e77f2241422425e5 Mon Sep 17 00:00:00 2001 From: star9029 Date: Fri, 27 Oct 2023 06:25:46 +0800 Subject: [PATCH] eventpp: add package (#2756) --- packages/e/eventpp/xmake.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/e/eventpp/xmake.lua diff --git a/packages/e/eventpp/xmake.lua b/packages/e/eventpp/xmake.lua new file mode 100644 index 000000000..92eb509f7 --- /dev/null +++ b/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 + void test() { + eventpp::CallbackList callbackList; + } + ]]}, {configs = {languages = "c++11"}})) + end)