Merge pull request #72 from paul-reilly/libuv-shared-fix

libuv: fix windows and linux links
pull/76/head
ruki 4 years ago committed by GitHub
commit 95d829f445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/l/libuv/xmake.lua

@ -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())

Loading…
Cancel
Save