xmake.lua 864 B

1234567891011121314151617181920212223
  1. package("fast_io")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/cppfastio/fast_io")
  4. set_description("Significantly faster input/output for C++20")
  5. set_license("MIT")
  6. add_urls("https://github.com/cppfastio/fast_io.git")
  7. add_urls("https://bitbucket.org/ejsvifq_mabmip/fast_io.git")
  8. add_urls("https://gitee.com/qabeowjbtkwb/fast_io.git")
  9. add_versions("2023.1.28", "b99b32ab429eb6256fd8de1e17fe38e4c54eb49c")
  10. on_install("windows", "linux", "macosx", "msys", "mingw", function (package)
  11. os.cp("include", package:installdir())
  12. end)
  13. on_test(function (package)
  14. assert(package:check_cxxsnippets({test = [[
  15. void test() {
  16. print("Hello, fast_io world!\n");
  17. }
  18. ]]}, {configs = {languages = "c++20"}, includes = {"fast_io.h"}}))
  19. end)