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
|
2022-05-07 07:29:05 +08:00
|
|
|
REF 2f560ff4c07e5446f2539505cb4f64f80b54ca8e #v11.4.2
|
|
|
|
SHA512 afa19cc161b9e49eafacc113583bbf68a34d83a9535c5c4f1f1cd57f943a5ad91c3117c0e2b47b2975a65f0284aec1200f6f8f5768afa7d6aebcbb823934036a
|
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()
|
|
|
|
|
2022-03-16 02:17:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-07 07:29:05 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-05-20 05:36:36 +08:00
|
|
|
OPTIONS
|
2022-05-07 07:29:05 +08:00
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DUSE_TLS=1
|
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
USE_SECURE_TRANSPORT
|
2019-06-25 06:38:04 +08:00
|
|
|
)
|
|
|
|
|
2022-03-16 02:17:14 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ixwebsocket)
|
2022-05-07 07:29:05 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-06-25 06:38:04 +08:00
|
|
|
|
2022-05-07 07:29:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-06-25 06:38:04 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-05-07 07:29:05 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|