vcpkg/ports/wolfmqtt/portfile.cmake
JacobBarthelmeh f8f5998162
[wolfSSL/wolfTPM/wolfMQTT] Update to latest version (#28830)
* wolfSSL updates
* [wolfSSL]  from 5.5.0  -> 5.5.4
* [wolfTPM]  from 2.6.0  -> 2.7.0
* [wolfMQTT] from 1.14.1 -> 1.15.0

* Update ports/wolftpm/portfile.cmake

If there is no patch, delete it.

* [wolfssl] remove comments from patch pr_5949.patch

* [wolfmqtt] remove PATCHES since no longer needed

* [wolfmqtt] update git tree hash for version 1.15.0

* [wolfssl/wolftpm] update version database

---------

Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-01-30 16:59:14 -08:00

29 lines
773 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wolfssl/wolfmqtt
REF v1.15.0
SHA512 9012e4723d469ce98bd5f0e6a3e001ab6c94c0fb4fef0d2de73446d702959052f6f5fe5a9d805b088f17c2d94a25abf41ae802421c99b62f8d8cd9a14c9e7271
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-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")