[async-mqtt] Add tls feature. (#32551)

This commit is contained in:
Ómar Högni Guðmarsson 2023-07-24 18:44:07 +00:00 committed by GitHub
parent 3678e75c3a
commit 57ca276412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 2 deletions

View File

@ -8,9 +8,15 @@ vcpkg_from_github(
HEAD_REF main HEAD_REF main
) )
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
tls ASYNC_MQTT_USE_TLS
)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}" SOURCE_PATH "${SOURCE_PATH}"
OPTIONS OPTIONS
${FEATURE_OPTIONS}
-DASYNC_MQTT_BUILD_TOOLS=OFF -DASYNC_MQTT_BUILD_TOOLS=OFF
-DASYNC_MQTT_BUILD_EXAMPLES=OFF -DASYNC_MQTT_BUILD_EXAMPLES=OFF
-DASYNC_MQTT_BUILD_UNIT_TESTS=OFF -DASYNC_MQTT_BUILD_UNIT_TESTS=OFF

View File

@ -1,6 +1,7 @@
{ {
"name": "async-mqtt", "name": "async-mqtt",
"version": "1.0.6", "version": "1.0.6",
"port-version": 1,
"description": "Header-only Asynchronous MQTT communication library for C++17 based on Boost.Asio.", "description": "Header-only Asynchronous MQTT communication library for C++17 based on Boost.Asio.",
"homepage": "https://github.com/redboltz/async_mqtt", "homepage": "https://github.com/redboltz/async_mqtt",
"license": "BSL-1.0", "license": "BSL-1.0",
@ -24,5 +25,16 @@
"name": "vcpkg-cmake-config", "name": "vcpkg-cmake-config",
"host": true "host": true
} }
] ],
"default-features": [
"tls"
],
"features": {
"tls": {
"description": "Enable TLS support",
"dependencies": [
"openssl"
]
}
}
} }

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "9c89da20b589c01a60d633c5a1db2ed36215eb31",
"version": "1.0.6",
"port-version": 1
},
{ {
"git-tree": "cd1032beeb26ec19d1a9c384b0c8335249292e66", "git-tree": "cd1032beeb26ec19d1a9c384b0c8335249292e66",
"version": "1.0.6", "version": "1.0.6",

View File

@ -258,7 +258,7 @@
}, },
"async-mqtt": { "async-mqtt": {
"baseline": "1.0.6", "baseline": "1.0.6",
"port-version": 0 "port-version": 1
}, },
"asynch": { "asynch": {
"baseline": "2019-09-21", "baseline": "2019-09-21",