xmake.lua 773 B

12345678910111213141516171819202122
  1. package("rang")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://agauniyal.github.io/rang/")
  4. set_description("A Minimal, Header only Modern c++ library for terminal goodies 💄✨")
  5. set_license("Unlicense")
  6. add_urls("https://github.com/agauniyal/rang.git")
  7. add_versions("2022.07.01", "22345aa4c468db3bd4a0e64a47722aad3518cc81")
  8. on_install(function (package)
  9. os.cp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <iostream>
  14. #include <rang.hpp>
  15. void test() {
  16. std::cout << "Plain old text" << rang::style::bold;
  17. }
  18. ]]}, {configs = {languages = "c++11"}}))
  19. end)