mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 18:52:09 +00:00
Fix build scripts
This commit is contained in:
4 files changed
+46
-13
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package("curl-static")
|
||||
add_deps("cmake")
|
||||
add_versions("8.5.0", "7161cb17c01dcff1dc5bf89a18437d9d729f1ecd")
|
||||
set_urls("https://github.com/curl/curl.git")
|
||||
on_install(function (package)
|
||||
local configs = {}
|
||||
table.insert(configs, "-DCURL_USE_LIBSSH2=OFF")
|
||||
table.insert(configs, "-DHAVE_LIBIDN2=OFF")
|
||||
table.insert(configs, "-DCURL_USE_LIBPSL=OFF")
|
||||
table.insert(configs, "-DBUILD_CURL_EXE=OFF")
|
||||
table.insert(configs, "-DBUILD_TESTING=OFF")
|
||||
table.insert(configs, "-DCURL_USE_MBEDTLS=" .. (package:is_plat("linux") and "ON" or "OFF"))
|
||||
table.insert(configs, "-DCURL_USE_SCHANNEL=" .. (package:is_plat("windows") and "ON" or "OFF"))
|
||||
table.insert(configs, "-DHTTP_ONLY=ON")
|
||||
table.insert(configs, "-DCURL_USE_LIBSSH2=OFF")
|
||||
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
|
||||
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
|
||||
import("package.tools.cmake").install(package, configs)
|
||||
end)
|
||||
package_end()
|
||||
Reference in new issue
Block a user