iw7-mod/deps/premake/curl.lua
m 885908ff15
LUI (#126)
* lui scripting + server list

* better hooks

* add hks hook + fix dvars

* add properties util for later

* Add Heatbeats to Dedis (#109)

* Add heatbeats to dedis

* Address review changes

* fix: server browser columns match game (#122)

* fix: server browser columns match game

* chore: remove unused debug logs

---------

Co-authored-by: efinst0rm <efinst0rm@users.noreply.github.com>
Co-authored-by: Liam <lierrmm@gmail.com>
2024-03-07 20:27:06 -06:00

73 lines
989 B
Lua

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",
"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*"
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
table.insert(dependencies, curl)