Explorar el Código

Add extsources to libcurl (#2376)

ImperatorS79 hace 2 años
padre
commit
2677d4bd2b
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      packages/l/libcurl/xmake.lua

+ 8 - 0
packages/l/libcurl/xmake.lua

@@ -33,6 +33,14 @@ package("libcurl")
     add_configs("libssh2",  {description = "Use libSSH2 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)
         if package:is_plat("windows", "mingw") then
             if not package:config("shared") then