xmake.lua 798 B

12345678910111213141516171819
  1. package("dirent")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/tronkko/dirent")
  4. set_description("C/C++ library for retrieving information on files and directories")
  5. set_license("MIT")
  6. add_urls("https://github.com/tronkko/dirent/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/tronkko/dirent.git")
  8. add_versions("1.25", "1c816c911f911161fc8874a308c15f1819c294dd2f94d618063a878723238a06")
  9. add_versions("1.24", "37009127a65bb1ddc47d06c097321f87f45ca2e998b2ec3bf2e0b2b19649d6f9")
  10. on_install("windows", "mingw", "msys", "cygwin", function (package)
  11. os.cp("include", package:installdir())
  12. end)
  13. on_test(function (package)
  14. assert(package:has_cfuncs("opendir", {includes = "dirent.h"}))
  15. end)