Add extsources to libcurl (#2376)

pull/2381/head
ImperatorS79 1 year ago committed by GitHub
parent 9061d635e3
commit 2677d4bd2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/l/libcurl/xmake.lua

@ -33,6 +33,14 @@ package("libcurl")
add_configs("libssh2", {description = "Use libSSH2 library.", default = false, type = "boolean"}) add_configs("libssh2", {description = "Use libSSH2 library.", default = false, type = "boolean"})
add_configs("libpsl", {description = "Use libpsl library.", default = false, type = "boolean"}) add_configs("libpsl", {description = "Use libpsl library.", default = false, type = "boolean"})
if is_plat("mingw") and is_subhost("msys") then
add_extsources("pacman::curl")
elseif is_plat("linux") then
add_extsources("pacman::curl", "apt::libcurl4-gnutls-dev", "apt::libcurl4-nss-dev", "apt::libcurl4-openssl-dev")
elseif is_plat("macosx") then
add_extsources("brew::curl")
end
on_load(function (package) on_load(function (package)
if package:is_plat("windows", "mingw") then if package:is_plat("windows", "mingw") then
if not package:config("shared") then if not package:config("shared") then

Loading…
Cancel
Save