mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 17:36:26 +00:00
Add BSD support for zig builds (#2332)
- Adds a new OS clause to build.zig for the BSDs - Tested on my FreeBSD box using https://github.com/Not-Nik/raylib-zig - All demos build and render just fine. Nice !
This commit is contained in:

committed by
GitHub

parent
1e436be51d
commit
96452637d9
@@ -47,6 +47,19 @@ pub fn Pkg(srcdir: []const u8) type {
|
|||||||
raylib.linkSystemLibrary("m");
|
raylib.linkSystemLibrary("m");
|
||||||
raylib.linkSystemLibrary("X11");
|
raylib.linkSystemLibrary("X11");
|
||||||
},
|
},
|
||||||
|
.freebsd, .openbsd, .netbsd, .dragonfly => {
|
||||||
|
raylib.addCSourceFiles(&.{srcdir ++ "/rglfw.c"}, raylib_flags);
|
||||||
|
raylib.linkSystemLibrary("GL");
|
||||||
|
raylib.linkSystemLibrary("rt");
|
||||||
|
raylib.linkSystemLibrary("dl");
|
||||||
|
raylib.linkSystemLibrary("m");
|
||||||
|
raylib.linkSystemLibrary("X11");
|
||||||
|
raylib.linkSystemLibrary("Xrandr");
|
||||||
|
raylib.linkSystemLibrary("Xinerama");
|
||||||
|
raylib.linkSystemLibrary("Xi");
|
||||||
|
raylib.linkSystemLibrary("Xxf86vm");
|
||||||
|
raylib.linkSystemLibrary("Xcursor");
|
||||||
|
},
|
||||||
.macos => {
|
.macos => {
|
||||||
// On macos rglfw.c include Objective-C files.
|
// On macos rglfw.c include Objective-C files.
|
||||||
const raylib_flags_extra_macos = &[_][]const u8{
|
const raylib_flags_extra_macos = &[_][]const u8{
|
||||||
|
Reference in New Issue
Block a user