Allow use of ngtcp2 via pkconfig

Use gnutls for crypto functions

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser 2026-03-01 15:29:00 +01:00 committed by phosit
parent 1c2dbf2eb0
commit 61bcc38458
No known key found for this signature in database
GPG key ID: C9430B600671C268
2 changed files with 15 additions and 0 deletions

View file

@ -572,6 +572,16 @@ extern_lib_defs = {
end end
end, end,
}, },
ngtcp2 = {
compile_settings = function()
pkgconfig.add_includes("libngtcp2")
pkgconfig.add_includes("libngtcp2_crypto_gnutls")
end,
link_settings = function()
pkgconfig.add_links("libngtcp2")
pkgconfig.add_links("libngtcp2_crypto_gnutls")
end
},
nvtt = { nvtt = {
compile_settings = function() compile_settings = function()
if not _OPTIONS["with-system-nvtt"] then if not _OPTIONS["with-system-nvtt"] then

View file

@ -731,6 +731,7 @@ function setup_all_libs ()
"cpp_httplib", "cpp_httplib",
"spidermonkey", "spidermonkey",
"enet", "enet",
"ngtcp2",
"sdl", "sdl",
"boost", -- dragged in via server->simulation.h->random and NetSession.h->lockfree "boost", -- dragged in via server->simulation.h->random and NetSession.h->lockfree
"fmt", "fmt",
@ -802,6 +803,7 @@ function setup_all_libs ()
"spidermonkey", "spidermonkey",
"boost", "boost",
"enet", "enet",
"ngtcp2",
"gloox", "gloox",
"icu", "icu",
"iconv", "iconv",
@ -883,6 +885,7 @@ function setup_all_libs ()
"zlib", "zlib",
"boost", "boost",
"enet", "enet",
"ngtcp2",
"libcurl", "libcurl",
"tinygettext", "tinygettext",
"icu", "icu",
@ -970,6 +973,7 @@ function setup_all_libs ()
"sdl", -- key definitions "sdl", -- key definitions
"boost", "boost",
"enet", "enet",
"ngtcp2",
"tinygettext", "tinygettext",
"icu", "icu",
"iconv", "iconv",
@ -1105,6 +1109,7 @@ used_extern_libs = {
"cxxtest", "cxxtest",
"comsuppw", "comsuppw",
"enet", "enet",
"ngtcp2",
"libcurl", "libcurl",
"tinygettext", "tinygettext",
"icu", "icu",