mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 01:49:07 +08:00
9e03a3ac59
* [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>
33 lines
880 B
CMake
33 lines
880 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO machinezone/IXWebSocket
|
|
REF v9.6.2
|
|
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(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
${FEATURE_OPTIONS}
|
|
-DUSE_TLS=1
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|