xmake.lua 615 B

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