Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ixwebsocket] add new port #6835

Merged
merged 13 commits into from
Jun 24, 2019
21 changes: 21 additions & 0 deletions ports/ixwebsocket/CONTROL
Original file line number Diff line number Diff line change
@@ -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 changes: 24 additions & 0 deletions ports/ixwebsocket/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)