diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/paho-mqttpp3 | |
Diffstat (limited to 'vcpkg/ports/paho-mqttpp3')
| -rw-r--r-- | vcpkg/ports/paho-mqttpp3/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/paho-mqttpp3/vcpkg.json | 29 |
2 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/paho-mqttpp3/portfile.cmake b/vcpkg/ports/paho-mqttpp3/portfile.cmake new file mode 100644 index 0000000..821404a --- /dev/null +++ b/vcpkg/ports/paho-mqttpp3/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO eclipse/paho.mqtt.cpp + REF "v${VERSION}" + SHA512 2d7645c1a7681cdfb643bb77576412655220ee160eb18dbe6ffc4ed39711f2fc5fb9884e0d8244a7a21b34aec2e602042cb18b44159680d0b97823c418c23566 + HEAD_REF master +) + +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PAHO_BUILD_STATIC) +string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PAHO_BUILD_SHARED) + +vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + "ssl" PAHO_WITH_SSL +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DPAHO_BUILD_STATIC=${PAHO_BUILD_STATIC} + -DPAHO_BUILD_SHARED=${PAHO_BUILD_SHARED} + ${FEATURE_OPTIONS} +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(PACKAGE_NAME pahomqttcpp CONFIG_PATH "lib/cmake/PahoMqttCpp") + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/about.html") diff --git a/vcpkg/ports/paho-mqttpp3/vcpkg.json b/vcpkg/ports/paho-mqttpp3/vcpkg.json new file mode 100644 index 0000000..67c51ca --- /dev/null +++ b/vcpkg/ports/paho-mqttpp3/vcpkg.json @@ -0,0 +1,29 @@ +{ + "name": "paho-mqttpp3", + "version": "1.5.2", + "description": "Paho project provides open-source C++ wrapper for Paho C library", + "homepage": "https://github.com/eclipse/paho.mqtt.cpp", + "license": "EPL-1.0", + "dependencies": [ + "paho-mqtt", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "default-features": [ + "ssl" + ], + "features": { + "ssl": { + "description": "Build with SSL support", + "dependencies": [ + "openssl" + ] + } + } +} |