package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
615 B
16 lines
615 B
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)
|
|
|