mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 00:19:01 +08:00
66045de4dc
* wolfSSL release updates for wolfTPM v2.5.0, wolfSSL v5.4.0 and wolfMQTT v1.14.0. * Fixes for wolfSSL, wolfTPM and wolfMQTT for CMake issues.
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO wolfssl/wolfssl
|
|
REF v5.4.0-stable
|
|
SHA512 e43560f83f6c62d78b10c4df7db21f02386f22b893688b98d2f3432e3b3946a4e80960c7402404a8c0486c87b1dde5b7a3827f9d4d3be13f87f370dfc1179c78
|
|
HEAD_REF master
|
|
PATCHES
|
|
wolfssl_pr5401.diff
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DWOLFSSL_BUILD_OUT_OF_TREE=yes
|
|
-DWOLFSSL_EXAMPLES=no
|
|
-DWOLFSSL_CRYPT_TESTS=no
|
|
-DWOLFSSL_OPENSSLEXTRA=yes
|
|
-DWOLFSSL_TPM=yes
|
|
-DWOLFSSL_TLSX=yes
|
|
-DWOLFSSL_OCSP=yes
|
|
-DWOLFSSL_OCSPSTAPLING=yes
|
|
-DWOLFSSL_OCSPSTAPLING_V2=yes
|
|
-DWOLFSSL_CRL=yes
|
|
-DWOLFSSL_DES3=yes
|
|
-DCMAKE_C_FLAGS='-DWOLFSSL_ALT_CERT_CHAINS\ -DWOLFSSL_DES_ECB'
|
|
OPTIONS_DEBUG
|
|
-DWOLFSSL_DEBUG=yes)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/wolfssl)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|