2023-02-12 12:21:06 -05:00
|
|
|
curl = {
|
|
|
|
source = path.join(dependencies.basePath, "curl"),
|
|
|
|
}
|
|
|
|
|
|
|
|
function curl.import()
|
|
|
|
links { "curl" }
|
|
|
|
|
|
|
|
filter "toolset:msc*"
|
|
|
|
links { "Crypt32.lib" }
|
|
|
|
filter {}
|
|
|
|
|
|
|
|
curl.includes()
|
|
|
|
end
|
|
|
|
|
|
|
|
function curl.includes()
|
|
|
|
filter "toolset:msc*"
|
|
|
|
includedirs {
|
|
|
|
path.join(curl.source, "include"),
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"CURL_STRICTER",
|
|
|
|
"CURL_STATICLIB",
|
2023-02-12 13:29:54 -05:00
|
|
|
"CURL_DISABLE_DICT",
|
|
|
|
"CURL_DISABLE_FILE",
|
2023-02-12 12:21:06 -05:00
|
|
|
"CURL_DISABLE_LDAP",
|
2023-02-12 13:29:54 -05:00
|
|
|
"CURL_DISABLE_LDAPS",
|
|
|
|
"CURL_DISABLE_FTP",
|
|
|
|
"CURL_DISABLE_GOPHER",
|
|
|
|
"CURL_DISABLE_IMAP",
|
|
|
|
"CURL_DISABLE_MQTT",
|
|
|
|
"CURL_DISABLE_POP3",
|
|
|
|
"CURL_DISABLE_RTSP",
|
|
|
|
"CURL_DISABLE_SMTP",
|
|
|
|
"CURL_DISABLE_SMB",
|
|
|
|
"CURL_DISABLE_TELNET",
|
|
|
|
"CURL_DISABLE_TFTP",
|
2023-02-12 12:21:06 -05:00
|
|
|
}
|
|
|
|
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*"
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"USE_SCHANNEL",
|
|
|
|
"USE_WINDOWS_SSPI",
|
|
|
|
"USE_THREADS_WIN32",
|
|
|
|
}
|
|
|
|
|
|
|
|
filter "toolset:not msc*"
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"USE_GNUTLS",
|
|
|
|
"USE_THREADS_POSIX",
|
|
|
|
}
|
|
|
|
|
|
|
|
filter {}
|
|
|
|
|
|
|
|
warnings "Off"
|
|
|
|
kind "StaticLib"
|
|
|
|
end
|
|
|
|
|
2023-02-12 13:29:54 -05:00
|
|
|
table.insert(dependencies, curl)
|