From 57ca27641274dd1ba2203d65c0828be0cb474454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93mar=20H=C3=B6gni=20Gu=C3=B0marsson?= <70097935+omarhogni@users.noreply.github.com> Date: Mon, 24 Jul 2023 18:44:07 +0000 Subject: [PATCH] [async-mqtt] Add tls feature. (#32551) --- ports/async-mqtt/portfile.cmake | 6 ++++++ ports/async-mqtt/vcpkg.json | 14 +++++++++++++- versions/a-/async-mqtt.json | 5 +++++ versions/baseline.json | 2 +- 4 files changed, 25 insertions(+), 2 deletions(-) diff --git a/ports/async-mqtt/portfile.cmake b/ports/async-mqtt/portfile.cmake index a498744a1c..7e10decf86 100644 --- a/ports/async-mqtt/portfile.cmake +++ b/ports/async-mqtt/portfile.cmake @@ -8,9 +8,15 @@ vcpkg_from_github( HEAD_REF main ) +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + tls ASYNC_MQTT_USE_TLS +) + vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" OPTIONS + ${FEATURE_OPTIONS} -DASYNC_MQTT_BUILD_TOOLS=OFF -DASYNC_MQTT_BUILD_EXAMPLES=OFF -DASYNC_MQTT_BUILD_UNIT_TESTS=OFF diff --git a/ports/async-mqtt/vcpkg.json b/ports/async-mqtt/vcpkg.json index c3025e2f76..1d4eda5ad0 100644 --- a/ports/async-mqtt/vcpkg.json +++ b/ports/async-mqtt/vcpkg.json @@ -1,6 +1,7 @@ { "name": "async-mqtt", "version": "1.0.6", + "port-version": 1, "description": "Header-only Asynchronous MQTT communication library for C++17 based on Boost.Asio.", "homepage": "https://github.com/redboltz/async_mqtt", "license": "BSL-1.0", @@ -24,5 +25,16 @@ "name": "vcpkg-cmake-config", "host": true } - ] + ], + "default-features": [ + "tls" + ], + "features": { + "tls": { + "description": "Enable TLS support", + "dependencies": [ + "openssl" + ] + } + } } diff --git a/versions/a-/async-mqtt.json b/versions/a-/async-mqtt.json index a1b7decb21..9c530f4814 100644 --- a/versions/a-/async-mqtt.json +++ b/versions/a-/async-mqtt.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "9c89da20b589c01a60d633c5a1db2ed36215eb31", + "version": "1.0.6", + "port-version": 1 + }, { "git-tree": "cd1032beeb26ec19d1a9c384b0c8335249292e66", "version": "1.0.6", diff --git a/versions/baseline.json b/versions/baseline.json index 9cf1f20b9b..020ebff88b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -258,7 +258,7 @@ }, "async-mqtt": { "baseline": "1.0.6", - "port-version": 0 + "port-version": 1 }, "asynch": { "baseline": "2019-09-21",