[swaggercpp] Add new port version 0.2.1 (#51189)

This commit is contained in:
Sergio Triana Escobedo 2026-04-16 19:02:48 -06:00 committed by GitHub
parent 82bdf7810e
commit 34b81e658f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,22 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stescobedo92/swagger-cpp
REF v0.2.1
SHA512 8258929fd1d281b4d44395794fb0db4735e59fa50af085329be96642ac15d76231769363e49ae974001fa3843c6152c144f2598537eeeaa50252bd496ab3c01d
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSWAGGERCPP_BUILD_TESTS=OFF
-DSWAGGERCPP_BUILD_BENCHMARKS=OFF
-DSWAGGERCPP_BUILD_EXAMPLES=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME swaggercpp CONFIG_PATH lib/cmake/swaggercpp)
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,20 @@
{
"name": "swaggercpp",
"version": "0.2.1",
"description": "Professional C++23 library for Swagger/OpenAPI parsing, validation, traversal, and serialization.",
"homepage": "https://github.com/stescobedo92/swagger-cpp",
"license": "MIT",
"dependencies": [
"cpp-httplib",
"nlohmann-json",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"yaml-cpp"
]
}

View File

@ -9820,6 +9820,10 @@
"baseline": "3.1.2",
"port-version": 0
},
"swaggercpp": {
"baseline": "0.2.1",
"port-version": 0
},
"swenson-sort": {
"baseline": "2021-05-22",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "706103550d0ae521f88304b0abb6af8aefca79d0",
"version": "0.2.1",
"port-version": 0
}
]
}