Statically link raylib
This commit is contained in:
parent
dc12c6b6e0
commit
6f58e86f29
1 changed files with 8 additions and 5 deletions
13
build.zig
13
build.zig
|
@ -25,13 +25,16 @@ pub fn build(b: *std.Build) void {
|
|||
});
|
||||
|
||||
// Link Raylib
|
||||
exe.addLibraryPath(.{
|
||||
.cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib",
|
||||
});
|
||||
exe.linkSystemLibrary("raylib");
|
||||
// exe.addLibraryPath(.{
|
||||
// .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib",
|
||||
// });
|
||||
// exe.linkSystemLibrary("raylib");
|
||||
exe.linkSystemLibrary("curl");
|
||||
exe.addObjectFile(.{
|
||||
.cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib/libraylib.a",
|
||||
});
|
||||
// exe.addObjectFile(.{
|
||||
// .cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/lib/libraylib.a",
|
||||
// .cwd_relative = "/opt/homebrew/Cellar/curl/8.5.0/lib/libcurl.a",
|
||||
// });
|
||||
exe.addIncludePath(.{
|
||||
.cwd_relative = "/opt/homebrew/Cellar/raylib/5.0/include",
|
||||
|
|
Loading…
Add table
Reference in a new issue