diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-07-10 00:00:41 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-07-10 00:00:41 +0500 |
| commit | b5140b780170bc4d6f2e6ed9a50319f9165b0a77 (patch) | |
| tree | cc0692bacd5a927ba0f705ad524b91ba347173e0 /build.zig | |
| parent | 7f7822f1bb74d3a86da5f021b35559d4509f7e08 (diff) | |
Windows fix
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); @@ -23,6 +24,13 @@ pub fn build(b: *std.Build) void { } }); + if (builtin.target.os.tag == .windows) { + // If you are building on windows you need to provide your own + // raylib. Put it in the raylib dir + root.addLibraryPath(b.path("raylib/lib/")); + root.addIncludePath(b.path("raylib/include/")); + } + root.linkSystemLibrary("raylib", .{.needed = true}); root.addIncludePath(b.path("include/")); |
