mirror of
https://github.com/alterware/aw-installer.git
synced 2025-06-27 06:41:52 +00:00
build: use clang on Windows too (refactor Premake for cURL)
This commit is contained in:
15
deps/premake/curl.lua
vendored
15
deps/premake/curl.lua
vendored
@ -5,7 +5,7 @@ curl = {
|
||||
function curl.import()
|
||||
links { "curl" }
|
||||
|
||||
filter "toolset:msc*"
|
||||
filter "system:windows"
|
||||
links { "Crypt32.lib" }
|
||||
filter {}
|
||||
|
||||
@ -13,7 +13,7 @@ function curl.import()
|
||||
end
|
||||
|
||||
function curl.includes()
|
||||
filter "toolset:msc*"
|
||||
filter "system:windows"
|
||||
includedirs {
|
||||
path.join(curl.source, "include"),
|
||||
}
|
||||
@ -49,7 +49,7 @@ function curl.project()
|
||||
"BUILDING_LIBCURL",
|
||||
}
|
||||
|
||||
filter "toolset:msc*"
|
||||
filter "system:windows"
|
||||
|
||||
defines {
|
||||
"USE_SCHANNEL",
|
||||
@ -58,15 +58,6 @@ function curl.project()
|
||||
}
|
||||
|
||||
filter {}
|
||||
|
||||
filter "toolset:not msc*"
|
||||
|
||||
defines {
|
||||
"USE_GNUTLS",
|
||||
"USE_THREADS_POSIX",
|
||||
}
|
||||
|
||||
filter {}
|
||||
|
||||
warnings "Off"
|
||||
kind "StaticLib"
|
||||
|
Reference in New Issue
Block a user