aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/ixwebsocket
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/ixwebsocket
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/ixwebsocket')
-rw-r--r--vcpkg/ports/ixwebsocket/portfile.cmake42
-rw-r--r--vcpkg/ports/ixwebsocket/vcpkg.json73
2 files changed, 115 insertions, 0 deletions
diff --git a/vcpkg/ports/ixwebsocket/portfile.cmake b/vcpkg/ports/ixwebsocket/portfile.cmake
new file mode 100644
index 0000000..5cd422c
--- /dev/null
+++ b/vcpkg/ports/ixwebsocket/portfile.cmake
@@ -0,0 +1,42 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO machinezone/IXWebSocket
+ REF "v${VERSION}"
+ SHA512 de43c240282e34b905444f84eb5825f55e6f4d68dc9c3937318233a3916d1bb6934fb5bbbe9485c6e181e14c968189559b6837447d8f66ccd73d24634f7749d1
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ openssl USE_OPEN_SSL
+ mbedtls USE_MBED_TLS
+ sectransp USE_SECURE_TRANSPORT
+)
+
+string(COMPARE NOTEQUAL "${FEATURES}" "core" USE_TLS)
+
+list(REMOVE_ITEM FEATURES "ssl")
+list(LENGTH FEATURES num_features)
+if(num_features GREATER "2")
+ message(FATAL_ERROR "Can not select multiple ssl backends at the same time. Disable default features to disable the default ssl backend.")
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DUSE_TLS=${USE_TLS}
+ MAYBE_UNUSED_VARIABLES
+ USE_SECURE_TRANSPORT
+ USE_MBED_TLS
+ USE_OPEN_SSL
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ixwebsocket)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
diff --git a/vcpkg/ports/ixwebsocket/vcpkg.json b/vcpkg/ports/ixwebsocket/vcpkg.json
new file mode 100644
index 0000000..726c054
--- /dev/null
+++ b/vcpkg/ports/ixwebsocket/vcpkg.json
@@ -0,0 +1,73 @@
+{
+ "name": "ixwebsocket",
+ "version-semver": "11.4.6",
+ "description": "Lightweight WebSocket Client and Server + HTTP Client and Server",
+ "homepage": "https://github.com/machinezone/IXWebSocket",
+ "license": "BSD-3-Clause",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "zlib"
+ ],
+ "default-features": [
+ "ssl"
+ ],
+ "features": {
+ "mbedtls": {
+ "description": "SSL support (mbedTLS)",
+ "dependencies": [
+ "mbedtls"
+ ]
+ },
+ "openssl": {
+ "description": "SSL support (OpenSSL)",
+ "supports": "!uwp",
+ "dependencies": [
+ "openssl"
+ ]
+ },
+ "sectransp": {
+ "description": "SSL support (sectransp)",
+ "supports": "osx | ios"
+ },
+ "ssl": {
+ "description": "Default SSL backend",
+ "dependencies": [
+ {
+ "name": "ixwebsocket",
+ "features": [
+ "mbedtls"
+ ],
+ "platform": "windows"
+ },
+ {
+ "name": "ixwebsocket",
+ "features": [
+ "sectransp"
+ ],
+ "platform": "osx | ios"
+ },
+ {
+ "name": "ixwebsocket",
+ "features": [
+ "mbedtls"
+ ],
+ "platform": "windows & uwp"
+ },
+ {
+ "name": "ixwebsocket",
+ "features": [
+ "openssl"
+ ],
+ "platform": "!uwp & !windows & !osx & !ios"
+ }
+ ]
+ }
+ }
+}