[cppvrf] Add new port (#49657)

Co-authored-by: Kai Pastor <dg0yt@darc.de>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
Radames Cruz 2026-02-02 11:09:13 -08:00 committed by GitHub
parent 6d7bf7ef21
commit 06c584fba7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,30 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/cppvrf
REF "v${VERSION}"
SHA512 92f99477ad6d2ea2ff8214be30277f161e14d735b5019942919696af5aec14e088960074b6e534b58c7afa9487a71954ed271e81292b301bdbb1ff1679aa46ea
HEAD_REF main
)
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
# Only take the minor and minor version from ${VERSION}.
string(REGEX MATCH "^[0-9]+\\.[0-9]+" VERSION_MAJOR_MINOR "${VERSION}")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cppvrf-${VERSION_MAJOR_MINOR}")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)
file(
INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/cppvrf/usage Normal file
View File

@ -0,0 +1,4 @@
cppvrf provides CMake targets:
find_package(cppvrf CONFIG REQUIRED)
target_link_libraries(main PRIVATE cppvrf::cppvrf)

18
ports/cppvrf/vcpkg.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "cppvrf",
"version": "1.1.0",
"description": "VRF implementation library in C++20",
"homepage": "https://github.com/microsoft/cppvrf",
"license": "MIT",
"dependencies": [
"openssl",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -2136,6 +2136,10 @@
"baseline": "4.0",
"port-version": 0
},
"cppvrf": {
"baseline": "1.1.0",
"port-version": 0
},
"cppwinrt": {
"baseline": "2.0.250303.1",
"port-version": 0

9
versions/c-/cppvrf.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "2995585cd1ea36aeb6f28baa437d93147c5eea9e",
"version": "1.1.0",
"port-version": 0
}
]
}