2022-05-17 11:13:39 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO wolfssl/wolftpm
|
2023-01-30 17:59:14 -07:00
|
|
|
REF v2.7.0
|
|
|
|
SHA512 1b3e1bbd9f6e35226ff30cc6de7631fb420343a2ae4c8849d1477314a5fe8a95b99800fa17e10a30a9894041142748d654c913a5c4f4dc9eaad3f5157e405276
|
2022-05-17 11:13:39 -07:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DWOLFTPM_EXAMPLES=no
|
2022-07-29 21:33:04 -07:00
|
|
|
-DWOLFTPM_BUILD_OUT_OF_TREE=yes
|
2022-05-17 11:13:39 -07:00
|
|
|
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")
|