xmake.lua 871 B

123456789101112131415161718192021
  1. package("indicators")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/p-ranav/indicators")
  4. set_description("Activity Indicators for Modern C++")
  5. set_license("MIT")
  6. add_urls("https://github.com/p-ranav/indicators/archive/refs/tags/v$(version).zip",
  7. "https://github.com/p-ranav/indicators.git")
  8. add_versions("2.2", "08dc0592a1fb5e3a050562961fbaacf4d03dadb76a0eb47f0670e63235d14dc5")
  9. on_install(function (package)
  10. os.cp("include/indicators/*", package:installdir("include/indicators"))
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. void test() {
  15. indicators::show_console_cursor(false);
  16. }
  17. ]]}, {configs = {languages = "c++11"}, includes = "indicators/cursor_control.hpp"}))
  18. end)