[reflectcpp] Updated to reflectcpp 0.16.0; added support for various formats in the form of features (#42461)

This commit is contained in:
Dr. Patrick Urbanke (劉自成) 2024-12-05 23:43:14 +01:00 committed by GitHub
parent 04e2fbc675
commit bdd1a91336
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 76 additions and 5 deletions

View File

@ -2,7 +2,7 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH OUT_SOURCE_PATH SOURCE_PATH
REPO getml/reflect-cpp REPO getml/reflect-cpp
REF "v${VERSION}" REF "v${VERSION}"
SHA512 755f1474f3c58a950c6db010eeea388a11cf1caca66fbb75b1e03c86794fb3a9c6fa1509e0e78401d31055f43bcaddcd138da06d54e1e3507b2ea08d3a2d05b1 SHA512 9c5034e6d964a1ae817cb14e4cd0d19ccb69e703affd8c070105ace63f2f0f59079ae450c1de7a19d3e35faf471dcd5e4bbd56cd3f0594f23059dfc45f622ac0
HEAD_REF main HEAD_REF main
) )
@ -11,6 +11,16 @@ if(VCPKG_TARGET_IS_WINDOWS)
endif() endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" REFLECTCPP_BUILD_SHARED) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" REFLECTCPP_BUILD_SHARED)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
bson REFLECTCPP_BSON
flexbuffers REFLECTCPP_FLEXBUFFERS
msgpack REFLECTCPP_MSGPACK
ubjson REFLECTCPP_UBJSON
xml REFLECTCPP_XML
yaml REFLECTCPP_YAML
)
vcpkg_cmake_configure( vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
OPTIONS OPTIONS

View File

@ -1,6 +1,6 @@
{ {
"name": "reflectcpp", "name": "reflectcpp",
"version": "0.13.0", "version": "0.16.0",
"description": "A C++ library for serialization and deserialization using reflection.", "description": "A C++ library for serialization and deserialization using reflection.",
"homepage": "https://github.com/getml/reflect-cpp/", "homepage": "https://github.com/getml/reflect-cpp/",
"license": "MIT", "license": "MIT",
@ -19,7 +19,63 @@
}, },
{ {
"name": "yyjson", "name": "yyjson",
"version>=": "0.9.0" "version>=": "0.10.0"
} }
] ],
"features": {
"bson": {
"description": "Support for the BSON format",
"dependencies": [
{
"name": "libbson",
"version>=": "1.25.1"
}
]
},
"flexbuffers": {
"description": "Support for the flexbuffers format (part of flatbuffers)",
"dependencies": [
{
"name": "flatbuffers",
"version>=": "23.5.26#1"
}
]
},
"msgpack": {
"description": "Support for the msgpack format",
"dependencies": [
{
"name": "msgpack-c",
"version>=": "6.0.0"
}
]
},
"ubjson": {
"description": "Support for the UBJSON format",
"dependencies": [
{
"name": "jsoncons",
"version>=": "0.176.0"
}
]
},
"xml": {
"description": "Support for the XML format",
"dependencies": [
{
"name": "pugixml",
"version>=": "1.14"
}
]
},
"yaml": {
"description": "Support for the YAML format",
"dependencies": [
{
"name": "yaml-cpp",
"version>=": "0.8.0#1"
}
]
}
}
} }

View File

@ -7905,7 +7905,7 @@
"port-version": 0 "port-version": 0
}, },
"reflectcpp": { "reflectcpp": {
"baseline": "0.13.0", "baseline": "0.16.0",
"port-version": 0 "port-version": 0
}, },
"refprop-headers": { "refprop-headers": {

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "18558577ba05cafc84ff2d0e89eb712297411da9",
"version": "0.16.0",
"port-version": 0
},
{ {
"git-tree": "08d112d4bab3b16cfb10d1af5876dd192448be15", "git-tree": "08d112d4bab3b16cfb10d1af5876dd192448be15",
"version": "0.13.0", "version": "0.13.0",