2
0

xmake.lua 750 B

1234567891011121314151617181920
  1. package("cpp-linenoise")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/yhirose/cpp-linenoise")
  4. set_description("A single file multi-platform (Unix, Windows) C++ header-only linenoise-based readline library.")
  5. set_license("BSD-2-Clause")
  6. add_urls("https://github.com/yhirose/cpp-linenoise.git")
  7. add_versions("2021.11.05", "4cd89adfbc07cedada1aa32be12991828919d91b")
  8. on_install(function (package)
  9. os.cp("linenoise.hpp", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. void test() {
  14. linenoise::SetMultiLine(true);
  15. }
  16. ]]}, {includes = {"linenoise.hpp"}}))
  17. end)