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
604 B
16 lines
604 B
package("unistd_h") |
|
set_kind("library", {headeronly = true}) |
|
set_homepage("https://github.com/win32ports/unistd_h") |
|
set_description("header-only Windows implementation of the <unistd.h> header") |
|
set_license("MIT") |
|
|
|
add_urls("https://github.com/win32ports/unistd_h.git") |
|
add_versions("2019.07.30", "0dfc48c1bc67fa27b02478eefe0443b8d2750cc2") |
|
|
|
on_install("windows", function (package) |
|
os.cp("unistd.h", package:installdir("include")) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("access", {includes = "unistd.h"})) |
|
end)
|
|
|