|
|
|
@ -24,10 +24,14 @@ package("libuv") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
on_load("windows", function (package) |
|
|
|
|
package:add("links", "uv_a") |
|
|
|
|
package:add("links", "uv" .. (package:config("shared") and "" or "_a")) |
|
|
|
|
package:add("syslinks", "advapi32", "iphlpapi", "psapi", "user32", "userenv", "ws2_32", "kernel32", "gdi32", "winspool", "shell32", "ole32", "oleaut32", "uuid", "comdlg32") |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
if is_plat("linux") then |
|
|
|
|
add_syslinks("pthread") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
on_install("windows", function (package) |
|
|
|
|
import("package.tools.cmake").install(package) |
|
|
|
|
os.cp("include", package:installdir()) |
|
|
|
@ -39,4 +43,4 @@ package("libuv") |
|
|
|
|
|
|
|
|
|
on_test(function (package) |
|
|
|
|
assert(package:has_cfuncs("uv_tcp_init", {includes = "uv.h"})) |
|
|
|
|
end) |
|
|
|
|
end) |