[reflectcpp] update to 0.25.0 (#51845)

This commit is contained in:
toge 2026-05-19 10:33:45 +09:00 committed by GitHub
parent 17ff8283bf
commit a834b0e7af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 68 additions and 4 deletions

View File

@ -0,0 +1,31 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb1069f..070d6d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -311,10 +311,10 @@ if (REFLECTCPP_BSON OR REFLECTCPP_CHECK_HEADERS)
list(APPEND REFLECT_CPP_SOURCES
src/reflectcpp_bson.cpp
)
- if (NOT TARGET mongo::bson_static AND NOT TARGET mongo::bson_shared)
- find_package(bson-1.0 CONFIG REQUIRED)
+ if (NOT TARGET bson::static AND NOT TARGET bson::shared)
+ find_package(bson CONFIG REQUIRED)
endif ()
- target_link_libraries(reflectcpp PUBLIC $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)
+ target_link_libraries(reflectcpp PUBLIC $<IF:$<TARGET_EXISTS:bson::static>,bson::static,bson::shared>)
endif ()
if (REFLECTCPP_CAPNPROTO OR REFLECTCPP_CHECK_HEADERS)
diff --git a/reflectcpp-config.cmake.in b/reflectcpp-config.cmake.in
index a1ba068..4e9c66c 100644
--- a/reflectcpp-config.cmake.in
+++ b/reflectcpp-config.cmake.in
@@ -36,7 +36,7 @@ if (REFLECTCPP_BOOST_SERIALIZATION)
endif ()
if (REFLECTCPP_BSON)
- find_dependency(bson-1.0)
+ find_dependency(bson)
endif ()
if (REFLECTCPP_CAPNPROTO)

View File

@ -2,8 +2,10 @@ vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO getml/reflect-cpp
REF "v${VERSION}"
SHA512 4be84fc69efd6f4ce766d38cedc8b1d0fd0fa8170e69293383f7dbd59c6bce45797f0e7cf653ef9c839b15fd7da702c9daf30efd34c779555fe4e5bd5eb29481
SHA512 527b8962754b2a5c48e63df72fe5030bceaa40c10762c4fd2ec1d084d9ced5726129cac9f1045fd818888e8468283f6867a5cbdd11bae290a4111b4a67eb573f
HEAD_REF main
PATCHES
fix-bson.patch
)
if(VCPKG_TARGET_IS_WINDOWS)

View File

@ -1,6 +1,6 @@
{
"name": "reflectcpp",
"version": "0.24.0",
"version": "0.25.0",
"description": "A C++ library for serialization and deserialization using reflection. Supports JSON, Avro, BSON, Cap'n Proto, CBOR, CSV, flexbuffers, msgpack, parquet, TOML, UBJSON, XML, YAML.",
"homepage": "https://github.com/getml/reflect-cpp/",
"license": "MIT",
@ -23,6 +23,15 @@
}
],
"features": {
"boost-serialization": {
"description": "Enable Boost.Serialization support",
"dependencies": [
{
"name": "boost-serialization",
"version>=": "1.74.0"
}
]
},
"bson": {
"description": "Support for the BSON format",
"dependencies": [
@ -50,6 +59,15 @@
}
]
},
"cereal": {
"description": "Enable Cereal support",
"dependencies": [
{
"name": "cereal",
"version>=": "1.3.2"
}
]
},
"csv": {
"description": "Enable CSV support",
"dependencies": [
@ -127,6 +145,15 @@
"version>=": "0.8.0#1"
}
]
},
"yas": {
"description": "Enable yas support",
"dependencies": [
{
"name": "yas",
"version>=": "7.1.0"
}
]
}
}
}

View File

@ -1271,7 +1271,6 @@ realm-core:arm-neon-android=fail # https://github.com/realm/realm-core/issues/80
realm-core:arm64-android=fail
realm-core:x64-android=fail
realsense2:arm64-linux=cascade
reflectcpp[bson]:arm64-linux=feature-fails
rendergraph:arm64-linux=fail
restbed:arm64-linux=fail
restbed:x64-linux=fail # requires c++23

View File

@ -8721,7 +8721,7 @@
"port-version": 0
},
"reflectcpp": {
"baseline": "0.24.0",
"baseline": "0.25.0",
"port-version": 0
},
"refprop-headers": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8d4fdf84eaab50298da6c1265bd53277e10fba1f",
"version": "0.25.0",
"port-version": 0
},
{
"git-tree": "676a7e3342491691580364d104c87aaf06c08a79",
"version": "0.24.0",