2023-05-26 10:09:29 -04:00
|
|
|
curl = {
|
|
|
|
source = path.join(dependencies.basePath, "curl"),
|
|
|
|
}
|
|
|
|
|
|
|
|
function curl.import()
|
|
|
|
links { "curl" }
|
|
|
|
|
|
|
|
filter "toolset:msc*"
|
2023-05-26 10:38:15 -04:00
|
|
|
links { "Crypt32.lib" }
|
2023-05-26 10:09:29 -04:00
|
|
|
filter {}
|
|
|
|
|
|
|
|
curl.includes()
|
|
|
|
end
|
|
|
|
|
|
|
|
function curl.includes()
|
|
|
|
filter "toolset:msc*"
|
|
|
|
includedirs {
|
|
|
|
path.join(curl.source, "include"),
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"CURL_STRICTER",
|
|
|
|
"CURL_STATICLIB",
|
|
|
|
"CURL_DISABLE_LDAP",
|
|
|
|
}
|
|
|
|
filter {}
|
|
|
|
end
|
|
|
|
|
|
|
|
function curl.project()
|
|
|
|
if not os.istarget("windows") then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
project "curl"
|
|
|
|
language "C"
|
|
|
|
|
|
|
|
curl.includes()
|
|
|
|
|
|
|
|
includedirs {
|
|
|
|
path.join(curl.source, "lib"),
|
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
|
|
|
path.join(curl.source, "lib/**.c"),
|
|
|
|
path.join(curl.source, "lib/**.h"),
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"BUILDING_LIBCURL",
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "toolset:msc*"
|
|
|
|
|
2023-08-08 06:21:04 -04:00
|
|
|
defines {
|
|
|
|
"USE_SCHANNEL",
|
|
|
|
"USE_WINDOWS_SSPI",
|
|
|
|
"USE_THREADS_WIN32",
|
|
|
|
}
|
|
|
|
|
|
|
|
filter {}
|
2023-05-26 10:09:29 -04:00
|
|
|
|
|
|
|
filter "toolset:not msc*"
|
|
|
|
|
2023-08-08 06:21:04 -04:00
|
|
|
defines {
|
|
|
|
"USE_GNUTLS",
|
|
|
|
"USE_THREADS_POSIX",
|
|
|
|
}
|
2023-05-26 10:09:29 -04:00
|
|
|
|
|
|
|
filter {}
|
|
|
|
|
|
|
|
warnings "Off"
|
|
|
|
kind "StaticLib"
|
|
|
|
end
|
|
|
|
|
|
|
|
table.insert(dependencies, curl)
|