xmake.lua 963 B

12345678910111213141516171819202122
  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.3", "c1deca4b72d655ba457882a5d1b75011f99253c6a2cc8d2f5bc7c49324b2e4ff")
  9. add_versions("2.2", "08dc0592a1fb5e3a050562961fbaacf4d03dadb76a0eb47f0670e63235d14dc5")
  10. on_install(function (package)
  11. os.cp("include/indicators/*", package:installdir("include/indicators"))
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. void test() {
  16. indicators::show_console_cursor(false);
  17. }
  18. ]]}, {configs = {languages = "c++11"}, includes = "indicators/cursor_control.hpp"}))
  19. end)