2020-12-31 12:13:41 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2019-06-25 06:38:04 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO machinezone/IXWebSocket
|
2021-05-21 15:39:28 +08:00
|
|
|
REF 2149ac7ed60d7713a86446c4b93c6004f66415ac #v11.2.6
|
|
|
|
SHA512 737667f6e89156168db771fd2a6d3686cd51ddc753fa083ae399a84c689770a09fd86643bb2d838e9ae5a729067236f1d9b4ceece912145cfb83b29541a3d2c1
|
2019-06-25 06:38:04 +08:00
|
|
|
)
|
|
|
|
|
2020-05-20 05:36:36 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2021-05-21 15:39:28 +08:00
|
|
|
openssl USE_OPEN_SSL
|
|
|
|
mbedtls USE_MBED_TLS
|
|
|
|
sectransp USE_SECURE_TRANSPORT
|
2020-05-20 05:36:36 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if("sectransp" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
|
|
|
|
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
|
|
|
|
endif()
|
|
|
|
|
2019-06-25 06:38:04 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-05-20 05:36:36 +08:00
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DUSE_TLS=1
|
2019-06-25 06:38:04 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2021-03-16 06:57:19 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ixwebsocket)
|
2019-06-25 06:38:04 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-01-11 02:45:59 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|