xmake.lua 919 B

12345678910111213141516171819202122232425
  1. package("eventpp")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/wqking/eventpp")
  4. set_description("Event Dispatcher and callback list for C++")
  5. set_license("Apache-2.0")
  6. add_urls("https://github.com/wqking/eventpp/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/wqking/eventpp.git")
  8. add_versions("v0.1.3", "d87aba67223fd9aced2ba55eb82bd534007e43e1b919106a53fcd3070fa125ea")
  9. add_deps("cmake")
  10. on_install(function (package)
  11. import("package.tools.cmake").install(package, {"-DEVENTPP_INSTALL=ON"})
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. #include <eventpp/callbacklist.h>
  16. void test() {
  17. eventpp::CallbackList<void (const std::string &, const bool)> callbackList;
  18. }
  19. ]]}, {configs = {languages = "c++11"}}))
  20. end)