From 72a59feb459dc11b3dc6c5e6fd9e5dfa5dfdfc6e Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Fri, 3 Jul 2026 16:33:06 +0200 Subject: [PATCH] Add raylib v6 library binaries from upstream --- .gitattributes | 10 +++++++ vendor/raylib/v6/linux-arm64/libraylib.so.600 | 3 ++ vendor/raylib/v6/linux/libraylib.so.600 | 3 ++ vendor/raylib/v6/macos/libraylib.600.dylib | 3 ++ vendor/raylib/v6/raylib.odin | 30 +++++++++++++------ vendor/raylib/v6/windows/raylib.dll | 3 ++ vendor/raylib/v6/windows/raylib.lib | 3 ++ vendor/raylib/v6/windows/raylibdll.lib | 3 ++ 8 files changed, 49 insertions(+), 9 deletions(-) create mode 100644 vendor/raylib/v6/linux-arm64/libraylib.so.600 create mode 100644 vendor/raylib/v6/linux/libraylib.so.600 create mode 100644 vendor/raylib/v6/macos/libraylib.600.dylib create mode 100644 vendor/raylib/v6/windows/raylib.dll create mode 100644 vendor/raylib/v6/windows/raylib.lib create mode 100644 vendor/raylib/v6/windows/raylibdll.lib diff --git a/.gitattributes b/.gitattributes index d523ee98a..0023394d5 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,13 @@ vendor/wgpu/lib/wgpu-windows-x86_64-msvc-release/lib/wgpu_native.dll filter=lfs vendor/wgpu/lib/wgpu-windows-x86_64-msvc-release/lib/wgpu_native.dll.lib filter=lfs diff=lfs merge=lfs -text vendor/wgpu/lib/wgpu-windows-x86_64-msvc-release/lib/wgpu_native.lib filter=lfs diff=lfs merge=lfs -text vendor/wgpu/lib/wgpu-windows-x86_64-msvc-release/lib/wgpu_native.pdb filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/linux/libraylib.a filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/linux/libraylib.so.600 filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/linux-arm64/libraylib.a filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/linux-arm64/libraylib.so.600 filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/macos/libraylib.600.dylib filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/macos/libraylib.a filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/wasm/libraylib.web.a filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/windows/raylib.dll filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/windows/raylib.lib filter=lfs diff=lfs merge=lfs -text +vendor/raylib/v6/windows/raylibdll.lib filter=lfs diff=lfs merge=lfs -text \ No newline at end of file diff --git a/vendor/raylib/v6/linux-arm64/libraylib.so.600 b/vendor/raylib/v6/linux-arm64/libraylib.so.600 new file mode 100644 index 000000000..457d5b749 --- /dev/null +++ b/vendor/raylib/v6/linux-arm64/libraylib.so.600 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af10d9d92cb18ae0770b0069a5d60d7bfd1da8f8d40bbf4ee8fed1d330028659 +size 2107056 diff --git a/vendor/raylib/v6/linux/libraylib.so.600 b/vendor/raylib/v6/linux/libraylib.so.600 new file mode 100644 index 000000000..f8240d6f8 --- /dev/null +++ b/vendor/raylib/v6/linux/libraylib.so.600 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1041653dd5c1cb8c67494fa398a296520d3ffec20cf1bf71b1eaa4b96ac61aee +size 2100056 diff --git a/vendor/raylib/v6/macos/libraylib.600.dylib b/vendor/raylib/v6/macos/libraylib.600.dylib new file mode 100644 index 000000000..2f82abdde --- /dev/null +++ b/vendor/raylib/v6/macos/libraylib.600.dylib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e08b3372babd415f36f23a6852cb5bfce8b491c4f6c18756718142f274f5c66 +size 3606792 diff --git a/vendor/raylib/v6/raylib.odin b/vendor/raylib/v6/raylib.odin index 137dc82ab..eafd77db5 100644 --- a/vendor/raylib/v6/raylib.odin +++ b/vendor/raylib/v6/raylib.odin @@ -97,7 +97,7 @@ MAX_MATERIAL_MAPS :: #config(RAYLIB_MAX_MATERIAL_MAPS, 12) #assert(size_of(rune) == size_of(c.int)) RAYLIB_SHARED :: #config(RAYLIB_SHARED, false) -RAYLIB_WASM_LIB :: #config(RAYLIB_WASM_LIB, "wasm/libraylib.a") +RAYLIB_WASM_LIB :: #config(RAYLIB_WASM_LIB, "wasm/libraylib.web.a") when ODIN_OS == .Windows { @(extra_linker_flags="/NODEFAULTLIB:" + ("msvcrt" when RAYLIB_SHARED else "libcmt")) @@ -109,14 +109,26 @@ when ODIN_OS == .Windows { "system:Shell32.lib", } } else when ODIN_OS == .Linux { - foreign import lib { - // Note(bumbread): I'm not sure why in `linux/` folder there are - // multiple copies of raylib.so, but since these bindings are for - // particular version of the library, I better specify it. Ideally, - // though, it's best specified in terms of major (.so.4) - "linux/libraylib.so.600" when RAYLIB_SHARED else "linux/libraylib.a", - "system:dl", - "system:pthread", + when ODIN_ARCH == .arm64 { + foreign import lib { + // Note(bumbread): I'm not sure why in `linux/` folder there are + // multiple copies of raylib.so, but since these bindings are for + // particular version of the library, I better specify it. Ideally, + // though, it's best specified in terms of major (.so.4) + "linux-arm64/libraylib.so.600" when RAYLIB_SHARED else "linux-arm/libraylib.a", + "system:dl", + "system:pthread", + } + } else { + foreign import lib { + // Note(bumbread): I'm not sure why in `linux/` folder there are + // multiple copies of raylib.so, but since these bindings are for + // particular version of the library, I better specify it. Ideally, + // though, it's best specified in terms of major (.so.4) + "linux/libraylib.so.600" when RAYLIB_SHARED else "linux/libraylib.a", + "system:dl", + "system:pthread", + } } } else when ODIN_OS == .Darwin { foreign import lib { diff --git a/vendor/raylib/v6/windows/raylib.dll b/vendor/raylib/v6/windows/raylib.dll new file mode 100644 index 000000000..a5dc0d3cc --- /dev/null +++ b/vendor/raylib/v6/windows/raylib.dll @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c62606798c3f736b479db7721aed884102060541b743fd81be3e687ac6de3e67 +size 1905152 diff --git a/vendor/raylib/v6/windows/raylib.lib b/vendor/raylib/v6/windows/raylib.lib new file mode 100644 index 000000000..47282542e --- /dev/null +++ b/vendor/raylib/v6/windows/raylib.lib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e979fda995ea6b4ac0162156c6bc5d44c1ef6d995941f648a4f05ee19f3e00cb +size 5297172 diff --git a/vendor/raylib/v6/windows/raylibdll.lib b/vendor/raylib/v6/windows/raylibdll.lib new file mode 100644 index 000000000..da40d85e6 --- /dev/null +++ b/vendor/raylib/v6/windows/raylibdll.lib @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7320dd3a759d49f015da28738a1ac0a7f16714046038abbefb1f1035716a54da +size 406578