xmake.lua 605 B

12345678910111213141516
  1. package("dirent_h")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/win32ports/dirent_h")
  4. set_description("header-only Windows implementation of the <dirent.h> header")
  5. set_license("MIT")
  6. add_urls("https://github.com/win32ports/dirent_h.git")
  7. add_versions("2021.09.25", "0170b775ae7cede136c0c1f71b8e5002cc36288b")
  8. on_install("windows", function (package)
  9. os.cp("dirent.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("opendir", {includes = "dirent.h"}))
  13. end)