Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reflectcpp] Add open-source library reflectcpp to vcpkg #38899

Merged
merged 27 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d2ee97a
Add reflectcpp to vcpkg
Urfoex May 23, 2024
09dff08
version database
Urfoex May 23, 2024
e5ab507
Only support static library on Windows because of missing __declspec
Urfoex Jun 7, 2024
ad941fe
version database
Urfoex Jun 7, 2024
a8e7e40
Update to version 0.11.1 to fix external dependencies
Urfoex Jun 13, 2024
d95643a
Adjust port target WINDOWS to ONLY STATIC
Urfoex Jun 13, 2024
653283e
format manifest
Urfoex Jun 13, 2024
d7994d4
x-add-version reflectcpp
Urfoex Jun 13, 2024
8030bc7
Remove faulty version 0.10.0
Urfoex Jun 13, 2024
7108e7e
Patching reflect-cpp CMake to be INTERFACE library
Urfoex Jun 14, 2024
a382235
x-add-verion
Urfoex Jun 14, 2024
4293eae
remove empty lib dir
Urfoex Jun 14, 2024
f66f098
x-add-verion
Urfoex Jun 14, 2024
4c2de39
remove empty debug and lib dirs
Urfoex Jun 14, 2024
2d45aaa
x-add-verion
Urfoex Jun 14, 2024
553d816
Upstreamed changes. Updated to newer version - Live at HEAD. Adjusted…
Urfoex Jul 4, 2024
c9e0eb1
vcpkg x-add-version
Urfoex Jul 4, 2024
fcd9e0f
Adjusted install LICENSE
Urfoex Jul 4, 2024
a13f19a
vcpkg x-add-version
Urfoex Jul 4, 2024
d0ef658
remove patch
Urfoex Jul 4, 2024
c7cae4e
vcpkg x-add-version
Urfoex Jul 4, 2024
e4749ac
use latest version 0.13.0
Urfoex Jul 4, 2024
e80e9bf
vcpkg x-add-version
Urfoex Jul 4, 2024
a3485ea
don't delete lib folders for usage of libreflectcpp
Urfoex Jul 4, 2024
a5b5ed2
vcpkg x-add-version
Urfoex Jul 4, 2024
6933d86
remove /debug/include and /debug/share
Urfoex Jul 4, 2024
c9fbd66
vcpkg x-add-version
Urfoex Jul 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions ports/reflectcpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO getml/reflect-cpp
REF "v${VERSION}"
SHA512 755f1474f3c58a950c6db010eeea388a11cf1caca66fbb75b1e03c86794fb3a9c6fa1509e0e78401d31055f43bcaddcd138da06d54e1e3507b2ea08d3a2d05b1
HEAD_REF main
)

if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" REFLECTCPP_BUILD_SHARED)

vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
${FEATURE_OPTIONS}
-DREFLECTCPP_BUILD_TESTS=OFF
-DREFLECTCPP_BUILD_SHARED=${REFLECTCPP_BUILD_SHARED}
-DREFLECTCPP_USE_BUNDLED_DEPENDENCIES=OFF
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(
CONFIG_PATH "lib/cmake/${PORT}"
)

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
4 changes: 4 additions & 0 deletions ports/reflectcpp/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
reflect-cpp provides CMake targets:

find_package(reflectcpp CONFIG REQUIRED)
target_link_libraries(main PRIVATE reflectcpp::reflectcpp)
25 changes: 25 additions & 0 deletions ports/reflectcpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "reflectcpp",
"version": "0.13.0",
"description": "A C++ library for serialization and deserialization using reflection.",
"homepage": "https://github.com/getml/reflect-cpp/",
"license": "MIT",
"dependencies": [
{
"name": "ctre",
"version>=": "3.9.0"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "yyjson",
"version>=": "0.9.0"
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7668,6 +7668,10 @@
"baseline": "0.12.4",
"port-version": 0
},
"reflectcpp": {
"baseline": "0.13.0",
"port-version": 0
},
"refprop-headers": {
"baseline": "2022-12-07",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/r-/reflectcpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "c157d7da7e5abd639ade81979c32804d176e26e4",
"version": "0.13.0",
"port-version": 0
}
]
}