mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[ixwebsocket] add new port (#6835)
* Add ixwebsocket * remove commented cmake directives * add dependencies * directive to remove share folder * try again with 4.0.3 which is using find_library for external code instead of vendoring it by default * use vcpkg feature flag to detect ssl backend + compile ws * do not build ws command line tool * add a feature for osx / control file closer to curl one * stop using features, as this makes CI unhappy * Revert "stop using features, as this makes CI unhappy" This reverts commit 4666b185671a9e37de5252334965fd63c060aea0. * play again with Build-Depends to fix error which appears to be only on uwp * call vcpkg_from_github instead * share folder not created
This commit is contained in:
parent
aefbaa1ba9
commit
ecc4b1631f
21
ports/ixwebsocket/CONTROL
Normal file
21
ports/ixwebsocket/CONTROL
Normal file
@ -0,0 +1,21 @@
|
||||
Source: ixwebsocket
|
||||
Version: 4.0.3
|
||||
Build-Depends: zlib
|
||||
Description: Lightweight WebSocket Client and Server + HTTP Client
|
||||
Default-Features: ssl
|
||||
|
||||
Feature: ssl
|
||||
Build-Depends: ixwebsocket[openssl] (!uwp&!windows&!osx), ixwebsocket[mbedtls] (windows), ixwebsocket[mbedtls] (uwp), ixwebsocket[sectransp] (osx)
|
||||
Description: Default SSL backend
|
||||
|
||||
# SSL backends
|
||||
Feature: openssl
|
||||
Build-Depends: openssl
|
||||
Description: SSL support (OpenSSL)
|
||||
|
||||
Feature: mbedtls
|
||||
Build-Depends: mbedtls
|
||||
Description: SSL support (mbedTLS)
|
||||
|
||||
Feature: sectransp
|
||||
Description: SSL support (sectransp)
|
24
ports/ixwebsocket/portfile.cmake
Normal file
24
ports/ixwebsocket/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO machinezone/IXWebSocket
|
||||
REF v4.0.3
|
||||
SHA512 41cda81ef28ae2a51d77bf09158f4c07350f22b17ed4b6645a87c7defd2a901b7656de260bc785c42990ddbea0ab23ad6e099694d2712537de0ca328aee8e229
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
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/ixwebsocket RENAME copyright)
|
||||
|
||||
# Post-build test for cmake libraries
|
||||
# vcpkg_test_cmake(PACKAGE_NAME ixwebsocket)
|
Loading…
x
Reference in New Issue
Block a user