[raylib-cpp] Cleanup, don't clutter include dir (#47596)

This commit is contained in:
Kai Pastor 2025-10-06 16:21:04 +02:00 committed by GitHub
parent 541dc33b71
commit 27ab4c1382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 19 additions and 16 deletions

View File

@ -1,3 +1,5 @@
set(VCPKG_BUILD_TYPE release) # header-only
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO RobLoach/raylib-cpp
@ -10,16 +12,13 @@ vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_RAYLIB_CPP_EXAMPLES=OFF
MAYBE_UNUSED_VARIABLES
BUILD_TESTING
)
vcpkg_cmake_install()
# Header-only library, so remove directories that aren't needed
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib"
)
# Keep root include clean
file(RENAME "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/raylib-cpp")
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")
file(RENAME "${CURRENT_PACKAGES_DIR}/raylib-cpp" "${CURRENT_PACKAGES_DIR}/include/raylib-cpp")
file(WRITE "${CURRENT_PACKAGES_DIR}/include/raylib-cpp.hpp" "#include \"raylib-cpp/raylib-cpp.hpp\"\n")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

View File

@ -1,18 +1,17 @@
{
"name": "raylib-cpp",
"version": "5.5.0",
"port-version": 1,
"description": "C++ Object Oriented Wrapper for raylib",
"homepage": "https://github.com/RobLoach/raylib-cpp",
"license": "Zlib",
"supports": "!arm32 & !uwp",
"dependencies": [
"raylib",
{
"name": "vcpkg-cmake",
"host": true
"name": "raylib",
"default-features": false
},
{
"name": "vcpkg-cmake-config",
"name": "vcpkg-cmake",
"host": true
}
]

View File

@ -8310,7 +8310,7 @@
},
"raylib-cpp": {
"baseline": "5.5.0",
"port-version": 0
"port-version": 1
},
"rbdl": {
"baseline": "3.3.0",

View File

@ -1,9 +1,14 @@
{
"versions": [
{
"git-tree": "4211d4e7ea87c0f2e1860058afb460dd2fbdb571",
"version": "5.5.0",
"port-version": 1
},
{
"git-tree": "4a69b9135c384bd3fc89146ce3461858d93c4e27",
"version": "5.5.0",
"port-version": 0
}
]
}
}