xmake.lua 1.1 KB

123456789101112131415161718192021222324252627
  1. package("emio")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://viatorus.github.io/emio/")
  4. set_description("A safe and fast high-level and low-level character input/output library for bare-metal and RTOS based embedded systems with a very small binary footprint.")
  5. add_urls("https://github.com/viatorus/emio/archive/refs/tags/$(version).tar.gz",
  6. "https://github.com/viatorus/emio.git")
  7. add_versions("0.7.0", "1ef5304964eee109c13477f2d84822ee474612475049a377b59e33a5fe05d7eb")
  8. add_versions("0.4.0", "847198a37fbf9dcc00ac85fbc64b283e41a018f53c39363129a4bdb9939338a6")
  9. add_deps("cmake")
  10. add_includedirs("include/emio")
  11. on_install("linux", "macosx", "bsd", "mingw", "msys", "android", "iphoneos", "cross", "wasm", function (package)
  12. import("package.tools.cmake").install(package)
  13. end)
  14. on_test(function (package)
  15. assert(package:check_cxxsnippets({test = [[
  16. #include <emio/format.hpp>
  17. void test() {
  18. emio::format("{0}", 42);
  19. }
  20. ]]}, {configs = {languages = "c++20"}}))
  21. end)