[uwebsockets] update to 20.74.0, add libdeflate feature (#43980)

This commit is contained in:
toge 2025-02-25 19:59:18 +09:00 committed by GitHub
parent ec3c0ceb51
commit 0724fedd10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 25 additions and 3 deletions

View File

@ -3,13 +3,17 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO uNetworking/uWebSockets
REF "v${VERSION}"
SHA512 542de9c2e007c37b6c25e58d58de6a4aa9b6f19b4b681856e40094d49e5c5c132798e79dc384b4609a8f876491779874e2778c76d7b00c16e53f44f4726739b5
SHA512 a2a46ae4f92eb31c43bd717d75003db5930462a10eb7a48b80b662f77a53af4fc24cf3209857ba01a7317784469a63386731271df4edf7ab99fe748ad709387c
HEAD_REF master
)
file(COPY "${SOURCE_PATH}/src" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(RENAME "${CURRENT_PACKAGES_DIR}/include/src" "${CURRENT_PACKAGES_DIR}/include/uwebsockets")
set(UWS_NO_LIBDEFLATE 1)
if("libdeflate" IN_LIST FEATURES)
set(UWS_NO_LIBDEFLATE 0)
endif()
set(UWS_NO_ZLIB 1)
if("zlib" IN_LIST FEATURES)
set(UWS_NO_ZLIB 0)

View File

@ -1,5 +1,8 @@
include(CMakeFindDependencyMacro)
find_dependency(unofficial-usockets CONFIG)
if(NOT "@UWS_NO_LIBDEFLATE@")
find_dependency(libdeflate)
endif()
if(NOT "@UWS_NO_ZLIB@")
find_dependency(ZLIB)
endif()
@ -11,6 +14,10 @@ if(NOT TARGET unofficial::uwebsockets::uwebsockets)
target_include_directories(unofficial::uwebsockets::uwebsockets INTERFACE "${_uws_include_dir}")
unset(_uws_include_dir)
target_link_libraries(unofficial::uwebsockets::uwebsockets INTERFACE $<LINK_ONLY:unofficial::usockets::usockets>)
if(NOT "@UWS_NO_LIBDEFLATE@")
target_compile_definitions(unofficial::uwebsockets::uwebsockets INTERFACE UWS_USE_LIBDEFLATE)
target_link_libraries(unofficial::uwebsockets::uwebsockets INTERFACE $<IF:$<TARGET_EXISTS:libdeflate::libdeflate_shared>,libdeflate::libdeflate_shared,libdeflate::libdeflate_static>)
endif()
if("@UWS_NO_ZLIB@")
target_compile_definitions(unofficial::uwebsockets::uwebsockets INTERFACE UWS_NO_ZLIB)
else()

View File

@ -1,6 +1,6 @@
{
"name": "uwebsockets",
"version-semver": "20.71.0",
"version-semver": "20.74.0",
"description": "Simple, secure & standards compliant web I/O for the most demanding of applications",
"homepage": "https://github.com/uWebSockets/uWebSockets",
"license": "Apache-2.0",
@ -8,6 +8,12 @@
"usockets"
],
"features": {
"libdeflate": {
"description": "Enable libdeflate support",
"dependencies": [
"libdeflate"
]
},
"ssl": {
"description": "Enable SSL support",
"dependencies": [

View File

@ -9409,7 +9409,7 @@
"port-version": 0
},
"uwebsockets": {
"baseline": "20.71.0",
"baseline": "20.74.0",
"port-version": 0
},
"v-hacd": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "710a7028c6e4c18cc7ab4779014c737ad7b094ec",
"version-semver": "20.74.0",
"port-version": 0
},
{
"git-tree": "378799c0e7e9f97bfd3b80aa9776a798f287f34d",
"version-semver": "20.71.0",