aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/raylib-cpp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/raylib-cpp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/raylib-cpp')
-rw-r--r--vcpkg/ports/raylib-cpp/portfile.cmake24
-rw-r--r--vcpkg/ports/raylib-cpp/vcpkg.json18
2 files changed, 42 insertions, 0 deletions
diff --git a/vcpkg/ports/raylib-cpp/portfile.cmake b/vcpkg/ports/raylib-cpp/portfile.cmake
new file mode 100644
index 0000000..ef006b1
--- /dev/null
+++ b/vcpkg/ports/raylib-cpp/portfile.cmake
@@ -0,0 +1,24 @@
+set(VCPKG_BUILD_TYPE release) # header-only
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO RobLoach/raylib-cpp
+ REF "v${VERSION}"
+ SHA512 12da247a1c1a3e0bc2d9f8c361024983b4cbcefe17c0d288e29593c8d49d44e8d319acda91c13fb181a933de9535d61ee75f3a2bf8549dcb3986f21c5d8a7e44
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_RAYLIB_CPP_EXAMPLES=OFF
+)
+vcpkg_cmake_install()
+
+# 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")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/raylib-cpp/vcpkg.json b/vcpkg/ports/raylib-cpp/vcpkg.json
new file mode 100644
index 0000000..c8944f8
--- /dev/null
+++ b/vcpkg/ports/raylib-cpp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "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",
+ "dependencies": [
+ {
+ "name": "raylib",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}