Bumped version to 0.21.0 (#500)

This commit is contained in:
Dr. Patrick Urbanke (劉自成)
2025-09-13 22:11:32 +02:00
committed by GitHub
parent 7ff6968c73
commit 03152b7ede
5 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -21,5 +21,5 @@ jobs:
pipx install conan
conan profile detect
- name: Make sure the library compiles with Conan
run: conan build . --build=missing -s compiler.cppstd=gnu20 -o *:with_capnproto=True -o *:with_cbor=True -o *:with_flatbuffers=True -o *:with_msgpack=True -o *:with_toml=True -o *:with_ubjson=True -o *:with_xml=True -o *:with_yaml=True
run: conan build . --build=missing -s compiler.cppstd=gnu20 -o *:with_capnproto=True -o *:with_cbor=True -o *:with_csv=True -o *:with_flatbuffers=True -o *:with_msgpack=True -o *:with_parquet=True -o *:with_toml=True -o *:with_ubjson=True -o *:with_xml=True -o *:with_yaml=True
+14 -6
View File
@@ -139,7 +139,7 @@ if (REFLECTCPP_USE_VCPKG)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
endif ()
project(reflectcpp VERSION 0.20.0 LANGUAGES CXX)
project(reflectcpp VERSION 0.21.0 LANGUAGES CXX)
if (PROJECT_IS_TOP_LEVEL)
set(REFLECTCPP_INSTALL ON)
@@ -255,7 +255,11 @@ if (REFLECTCPP_CSV)
if (NOT TARGET Arrow)
find_package(Arrow CONFIG REQUIRED)
endif()
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Arrow::arrow_static,Arrow::arrow_shared>")
if (REFLECTCPP_USE_VCPKG)
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Arrow::arrow_static,Arrow::arrow_shared>")
else()
target_link_libraries(reflectcpp PUBLIC "arrow::arrow")
endif()
endif ()
if (REFLECTCPP_FLEXBUFFERS)
@@ -282,11 +286,15 @@ if (REFLECTCPP_PARQUET)
if (NOT TARGET Arrow)
find_package(Arrow CONFIG REQUIRED)
endif()
if (NOT TARGET Parquet)
find_package(Parquet CONFIG REQUIRED)
if (REFLECTCPP_USE_VCPKG)
if (NOT TARGET Parquet)
find_package(Parquet CONFIG REQUIRED)
endif()
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Arrow::arrow_static,Arrow::arrow_shared>")
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Parquet::parquet_static,Parquet::parquet_shared>")
else()
target_link_libraries(reflectcpp PUBLIC "arrow::arrow")
endif()
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Arrow::arrow_static,Arrow::arrow_shared>")
target_link_libraries(reflectcpp PUBLIC "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,Parquet::parquet_static,Parquet::parquet_shared>")
endif ()
if (REFLECTCPP_TOML)
+8
View File
@@ -40,8 +40,10 @@ class ReflectCppConan(ConanFile):
"fPIC": [True, False],
"with_capnproto": [True, False],
"with_cbor": [True, False],
"with_csv": [True, False],
"with_flatbuffers": [True, False],
"with_msgpack": [True, False],
"with_parquet": [True, False],
"with_toml": [True, False],
"with_ubjson": [True, False],
"with_xml": [True, False],
@@ -52,8 +54,10 @@ class ReflectCppConan(ConanFile):
"fPIC": True,
"with_capnproto": False,
"with_cbor": False,
"with_csv": False,
"with_flatbuffers": False,
"with_msgpack": False,
"with_parquet": False,
"with_toml": False,
"with_ubjson": False,
"with_xml": False,
@@ -75,6 +79,8 @@ class ReflectCppConan(ConanFile):
self.requires("capnproto/1.1.0", transitive_headers=True)
if self.options.with_cbor or self.options.with_ubjson:
self.requires("jsoncons/0.176.0", transitive_headers=True)
if self.options.with_csv or self.options.with_parquet:
self.requires("arrow/21.0.0", transitive_headers=True)
if self.options.with_flatbuffers:
self.requires("flatbuffers/24.3.25", transitive_headers=True)
if self.options.with_msgpack:
@@ -110,8 +116,10 @@ class ReflectCppConan(ConanFile):
tc.cache_variables["REFLECTCPP_USE_VCPKG"] = False
tc.cache_variables["REFLECTCPP_CAPNPROTO"] = self.options.with_capnproto
tc.cache_variables["REFLECTCPP_CBOR"] = self.options.with_cbor
tc.cache_variables["REFLECTCPP_CSV"] = self.options.with_csv
tc.cache_variables["REFLECTCPP_FLEXBUFFERS"] = self.options.with_flatbuffers
tc.cache_variables["REFLECTCPP_MSGPACK"] = self.options.with_msgpack
tc.cache_variables["REFLECTCPP_PARQUET"] = self.options.with_parquet
tc.cache_variables["REFLECTCPP_TOML"] = self.options.with_toml
tc.cache_variables["REFLECTCPP_XML"] = self.options.with_xml
tc.cache_variables["REFLECTCPP_YAML"] = self.options.with_yaml
-17
View File
@@ -1,17 +0,0 @@
[project]
name = "reflect-cpp"
version = "0.14.1"
[tool.hatch.envs.default]
dependencies = [
"mkdocs~=1.6",
"mkdocs-material~=9.5",
"mkdocs-htmlproofer-plugin~=1.2",
]
[tool.hatch.envs.insiders]
dependencies = [
"mkdocs~=1.6",
"mkdocs-material @ git+https://{env:GH_C17_DEV_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git@9.5.39-insiders-4.53.14",
"mkdocs-htmlproofer-plugin~=1.2",
]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "reflectcpp",
"version-string": "0.20.0",
"version-string": "0.21.0",
"dependencies": [
{
"name": "vcpkg-cmake"