This commit is contained in:
CoraleSoft 2026-09-04 21:55:26 +12:00 committed by GitHub
commit de9a8cfa39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,35 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cryptopp-modern/cryptopp-modern
REF "${VERSION}"
SHA512 7d8ab77cdc7548edb9a4ef97094c999784e7a6718155cf0a529b891252be83893f851476d3e97fbf870f0f00aa8671118a2479cc1154483d9d2d60f7b588eba3
HEAD_REF main
)
# Disable ASM on Windows except x64 (only x64 has proper MASM support)
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(CRYPTOPP_DISABLE_ASM ON)
else()
set(CRYPTOPP_DISABLE_ASM OFF)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCRYPTOPP_BUILD_SHARED=OFF
-DCRYPTOPP_BUILD_TESTING=OFF
-DCRYPTOPP_DISABLE_ASM=${CRYPTOPP_DISABLE_ASM}
-DCRYPTOPP_INSTALL=ON
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cryptopp-modern)
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -0,0 +1,17 @@
{
"name": "cryptopp-modern",
"version": "2026.7.1",
"description": "Modern C++ cryptography library with improved CMake support and code organization",
"homepage": "https://github.com/cryptopp-modern/cryptopp-modern",
"license": "BSL-1.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2244,6 +2244,10 @@
"baseline": "2026-03-02",
"port-version": 0
},
"cryptopp-modern": {
"baseline": "2026.7.1",
"port-version": 0
},
"cserialport": {
"baseline": "4.3.3",
"port-version": 0

View File

@ -0,0 +1,29 @@
{
"versions": [
{
"git-tree": "aba41829a36122d8a058d38c58d8154d855c59fd",
"version": "2026.7.1",
"port-version": 0
},
{
"git-tree": "35f9302f6d9975aacd3c16a3b48d61c29577a9f8",
"version": "2026.6.0",
"port-version": 0
},
{
"git-tree": "d104d6042f47622797e040229b66a911b3456067",
"version": "2026.5.2",
"port-version": 0
},
{
"git-tree": "a67c84a62e30abdc4ba3a425a8509fd9afff965c",
"version": "2026.2.0",
"port-version": 0
},
{
"git-tree": "6b94e4ba272c10f12b50ccd2bbfba032e5de0290",
"version": "2025.12.0",
"port-version": 0
}
]
}