mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 00:18:59 +08:00
6a63ecae92
* ixwebsocket 11.2.0 * deledt port-version * update version * try version 11.2.3 with an include fix for CertOpenStore usage / https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certopenstore * Running ./vcpkg x-add-version ixwebsocket * Update ixwebsocket.json Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
36 lines
984 B
CMake
36 lines
984 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO machinezone/IXWebSocket
|
|
REF v11.2.3
|
|
SHA512 6346ceb91b2d0c884848977fc0bb56702e0542dde70a46952d54c899d3838714d06cbd286371ebbcb63e303a8b6e518c68049aea56121ecf7a0cc726e8b29a5d
|
|
)
|
|
|
|
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()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ixwebsocket)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|