vcpkg/ports/wolftpm/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

26 lines
742 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO wolfssl/wolftpm
REF v2.7.0
SHA512 1b3e1bbd9f6e35226ff30cc6de7631fb420343a2ae4c8849d1477314a5fe8a95b99800fa17e10a30a9894041142748d654c913a5c4f4dc9eaad3f5157e405276
HEAD_REF master
)
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DWOLFTPM_EXAMPLES=no
-DWOLFTPM_BUILD_OUT_OF_TREE=yes
OPTIONS_DEBUG
-DCMAKE_C_FLAGS='-DDEBUG_WOLFTPM'
)
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/wolftpm)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")