aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/async-mqtt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/async-mqtt')
-rw-r--r--vcpkg/ports/async-mqtt/portfile.cmake32
-rw-r--r--vcpkg/ports/async-mqtt/vcpkg.json92
2 files changed, 124 insertions, 0 deletions
diff --git a/vcpkg/ports/async-mqtt/portfile.cmake b/vcpkg/ports/async-mqtt/portfile.cmake
new file mode 100644
index 0000000..11944af
--- /dev/null
+++ b/vcpkg/ports/async-mqtt/portfile.cmake
@@ -0,0 +1,32 @@
+set(VCPKG_BUILD_TYPE release) #header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO redboltz/async_mqtt
+ REF "${VERSION}"
+ SHA512 618bcd8357fd560e6b92a1bce08da0259f59d53bcfa9aed9890f182cb6f20415cff2595f31a3ca68b6e9c7b1caed3499a2e1915cd84a43dabf2e1e324c029ac1
+ 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
+ -DASYNC_MQTT_BUILD_SYSTEM_TESTS=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME async_mqtt_iface CONFIG_PATH "lib/cmake/async_mqtt_iface")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/async-mqtt/vcpkg.json b/vcpkg/ports/async-mqtt/vcpkg.json
new file mode 100644
index 0000000..2051ace
--- /dev/null
+++ b/vcpkg/ports/async-mqtt/vcpkg.json
@@ -0,0 +1,92 @@
+{
+ "name": "async-mqtt",
+ "version": "10.2.5",
+ "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",
+ "dependencies": [
+ {
+ "name": "boost-any",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-asio",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-assert",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-beast",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-container",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-container-hash",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-date-time",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-endian",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-filesystem",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-hana",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-lexical-cast",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-log",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-multi-index",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-numeric-conversion",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-preprocessor",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "boost-system",
+ "version>=": "1.84.0"
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ],
+ "default-features": [
+ "tls"
+ ],
+ "features": {
+ "tls": {
+ "description": "Enable TLS support",
+ "dependencies": [
+ "openssl"
+ ]
+ }
+ }
+}