xmake.lua 842 B

123456789101112131415161718192021222324
  1. package("wjakob_filesystem")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/wjakob/filesystem")
  4. set_description("A tiny self-contained path manipulation library for C++")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/wjakob/filesystem.git")
  7. add_versions("2021.10.28", "c5f9de30142453eb3c6fe991e82dfc2583373116")
  8. on_install(function (package)
  9. os.cp("filesystem", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <filesystem/path.h>
  14. void test() {
  15. filesystem::path path1{"dir1"};
  16. filesystem::path path2{"dir2"};
  17. auto path3 = path1 / path2;
  18. }
  19. ]]}, {configs = {languages = "c++11"}}))
  20. end)