summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index ef10804..b5bbf33 100644
--- a/build.zig
+++ b/build.zig
@@ -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/"));