[ixwebsocket] update to 9.6.2 (#11030)

* [ixwebsocket] update to 9.5.0

* remove reference to vcpkg_test_cmake which is deprecated (was commented)

* remove all features, bump to depend on 9.5.2

* wrong sha512

* exclude uwp from the supported platforms / cannot see in logfiles why it is not building + I do not have access to this platform for testing

* try again uwp

* bring back mbedtls dep

* 9.5.8 has an old pre 1.1 openssl fix

* use mbedtls on windows and uwp

* revert to original CONTROL file

* do not install ixwebsocketConfig.cmake which conflicts with vcpkg

* portfile will handles openssl, mbedtls and sectransp options to choose the tls backend library

Co-authored-by: Benjamin Sergeant <bsergeant@mz.com>
This commit is contained in:
Benjamin Sergeant 2020-05-19 14:36:36 -07:00 committed by GitHub
parent 3864f7b0c3
commit 9e03a3ac59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 8 deletions

View File

@ -1,5 +1,5 @@
Source: ixwebsocket Source: ixwebsocket
Version: 9.1.9 Version: 9.6.2
Build-Depends: zlib Build-Depends: zlib
Homepage: https://github.com/machinezone/IXWebSocket Homepage: https://github.com/machinezone/IXWebSocket
Description: Lightweight WebSocket Client and Server + HTTP Client and Server Description: Lightweight WebSocket Client and Server + HTTP Client and Server

View File

@ -1,14 +1,27 @@
vcpkg_from_github( vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO machinezone/IXWebSocket REPO machinezone/IXWebSocket
REF v9.1.9 REF v9.6.2
SHA512 f1fd731b5f6a9ce6d6d10bee22a5d9d9baaa8ea0564d6c4cd7eb91dcb88a45c49b2c7fdb75f8640a3589c1b30cee33ef5df8dcbb55920d013394d1e33ddd3c8e SHA512 22a97f0c74d5789fd265627bbadfce02116a41fca888d684b756cbb1c070d626517855e265c484870d02db7084b6c1107d500acc1c13e327ede0c23228a54f7b
) )
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
openssl USE_OPEN_SSL
mbedtls USE_MBED_TLS
sectransp USE_SECURE_TRANSPORT
)
if("sectransp" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
endif()
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA # Disable this option if project cannot be built with Ninja PREFER_NINJA
OPTIONS -DUSE_TLS=1 OPTIONS
${FEATURE_OPTIONS}
-DUSE_TLS=1
) )
vcpkg_install_cmake() vcpkg_install_cmake()
@ -17,6 +30,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# Handle copyright # Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
# Post-build test for cmake libraries
# vcpkg_test_cmake(PACKAGE_NAME ixwebsocket)