Skip to content

Commit

Permalink
add sys_time_h package (#2956)
Browse files Browse the repository at this point in the history
* add sys_time_h

* Update xmake.lua

* Update xmake.lua
  • Loading branch information
heheda123123 authored Dec 18, 2023
1 parent d434a29 commit 5cc3cba
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/s/sys_time_h/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package("sys_time_h")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/win32ports/sys_time_h")
set_description("header-only Windows implementation of the <sys/time.h> header")
set_license("MIT")

add_urls("https://github.com/win32ports/sys_time_h.git")
add_versions("2023.03.22", "128ff475e1abc2aec0450f369bf91952a9bd2a3e")

on_install("windows", function (package)
os.cp("sys", package:installdir("include"))
end)

on_test(function (package)
assert(package:has_cfuncs("gettimeofday", {includes = "sys/time.h"}))
end)

0 comments on commit 5cc3cba

Please sign in to comment.