aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/wolfmqtt
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/wolfmqtt
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/wolfmqtt')
-rw-r--r--vcpkg/ports/wolfmqtt/portfile.cmake29
-rw-r--r--vcpkg/ports/wolfmqtt/vcpkg.json19
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg/ports/wolfmqtt/portfile.cmake b/vcpkg/ports/wolfmqtt/portfile.cmake
new file mode 100644
index 0000000..2fec054
--- /dev/null
+++ b/vcpkg/ports/wolfmqtt/portfile.cmake
@@ -0,0 +1,29 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO wolfssl/wolfmqtt
+ REF "v${VERSION}"
+ SHA512 8a0d58bd0918b30628efd2b0d0e4181a2577f01c273bfd7e5a15096578a7dee6328d605dd1658d62d5055a1d3da69aec58d1c8d6ebb9c4bed372bbc74cd5642d
+ HEAD_REF master
+ )
+
+vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ -DWOLFMQTT_BUILD_OUT_OF_TREE=yes
+ -DWOLFMQTT_EXAMPLES=no
+ OPTIONS_DEBUG
+ -DCMAKE_C_FLAGS='-DDEBUG_MQTT'
+ )
+
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE"
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
+ RENAME copyright)
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/wolfmqtt)
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
diff --git a/vcpkg/ports/wolfmqtt/vcpkg.json b/vcpkg/ports/wolfmqtt/vcpkg.json
new file mode 100644
index 0000000..5af6adc
--- /dev/null
+++ b/vcpkg/ports/wolfmqtt/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "wolfmqtt",
+ "version": "1.20.0",
+ "description": "MQTT library used with wolfSSL library for many platforms",
+ "homepage": "https://wolfssl.com",
+ "license": "GPL-2.0-or-later",
+ "supports": "!uwp",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ },
+ "wolfssl"
+ ]
+}