xmake.lua 771 B

12345678910111213141516171819202122
  1. package("nngpp")
  2. set_homepage("https://github.com/cwzx/nngpp")
  3. set_description("C++ wrapper around the nanomsg NNG API.")
  4. add_urls("https://github.com/cwzx/nngpp.git")
  5. add_versions("v2020.10.30", "8da8c026bd551b7685a8a140909ff96cfe91bf90")
  6. add_deps("nng")
  7. add_deps("cmake")
  8. on_install("windows", "linux", "macosx", "android", "iphoneos", "cross", function (package)
  9. import("package.tools.cmake").install(package, configs)
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <nngpp/nngpp.h>
  14. static void test() {
  15. nng::aio aio = nng::make_aio();
  16. }
  17. ]]}, {includes = "nngpp/nngpp.h",configs = {languages = "c++11"}}))
  18. end)