From 61bcc38458e1f271eb20fa1f9c497b863aed4f7a Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 1 Mar 2026 15:29:00 +0100 Subject: [PATCH] Allow use of ngtcp2 via pkconfig Use gnutls for crypto functions Signed-off-by: Ralph Sennhauser --- build/premake/extern_libs5.lua | 10 ++++++++++ build/premake/premake5.lua | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/build/premake/extern_libs5.lua b/build/premake/extern_libs5.lua index e99a37a961..ec0ed36314 100644 --- a/build/premake/extern_libs5.lua +++ b/build/premake/extern_libs5.lua @@ -572,6 +572,16 @@ extern_lib_defs = { 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 = { compile_settings = function() if not _OPTIONS["with-system-nvtt"] then diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index ce78240a44..0d339427b6 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -731,6 +731,7 @@ function setup_all_libs () "cpp_httplib", "spidermonkey", "enet", + "ngtcp2", "sdl", "boost", -- dragged in via server->simulation.h->random and NetSession.h->lockfree "fmt", @@ -802,6 +803,7 @@ function setup_all_libs () "spidermonkey", "boost", "enet", + "ngtcp2", "gloox", "icu", "iconv", @@ -883,6 +885,7 @@ function setup_all_libs () "zlib", "boost", "enet", + "ngtcp2", "libcurl", "tinygettext", "icu", @@ -970,6 +973,7 @@ function setup_all_libs () "sdl", -- key definitions "boost", "enet", + "ngtcp2", "tinygettext", "icu", "iconv", @@ -1105,6 +1109,7 @@ used_extern_libs = { "cxxtest", "comsuppw", "enet", + "ngtcp2", "libcurl", "tinygettext", "icu",