From 538051b5e3c5bd4a54b761ee1cdf51e7741d4cf4 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk Date: Tue, 26 Nov 2024 10:41:41 -0500 Subject: [PATCH] deps: win32: migrate from http_parser to llhttp --- CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5fa15604..406534548 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ if (NOT MSVC) endif() endif() set(http_lib "-lllhttp") - + if (NOT Jsoncpp_FOUND) message(SEND_ERROR "Jsoncpp is required for DHT proxy support") endif() @@ -156,7 +156,7 @@ else () ${WIN32_DEP_DIR}/openssl/include ${WIN32_DEP_DIR}/restinio/dev ${WIN32_DEP_DIR}/fmt/include - ${WIN32_DEP_DIR}/http_parser + ${WIN32_DEP_DIR}/llhttp/include ) endif () endif () @@ -343,12 +343,12 @@ if (MSVC) ) if (OPENDHT_HTTP) add_obj_lib (win32_fmt ${WIN32_DEP_DIR}/fmt/msvc/Release/fmt.lib) - add_obj_lib (win32_http_parser ${WIN32_DEP_DIR}/http_parser/x64/Release/http-parser.lib) + add_obj_lib (win32_llhttp ${WIN32_DEP_DIR}/llhttp/build/Release/llhttp.lib) add_obj_lib (win32_ssl ${WIN32_DEP_DIR}/openssl/libssl_static.lib) add_obj_lib (win32_crypto ${WIN32_DEP_DIR}/openssl/libcrypto_static.lib) list (APPEND obj_libs $ - $ + $ $ $ ) @@ -361,7 +361,7 @@ if (MSVC) ) list (APPEND win32_Libs ${PROJECT_SOURCE_DIR}/../fmt/msvc/Release/fmt.lib - ${PROJECT_SOURCE_DIR}/../http_parser/x64/Release/http-parser.lib + ${PROJECT_SOURCE_DIR}/../llhttp/build/Release/llhttp.lib ${PROJECT_SOURCE_DIR}/../openssl/libssl.lib ${PROJECT_SOURCE_DIR}/../openssl/libcrypto.lib )