summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig28
1 files changed, 28 insertions, 0 deletions
diff --git a/build.zig b/build.zig
new file mode 100644
index 0000000..ea91df6
--- /dev/null
+++ b/build.zig
@@ -0,0 +1,28 @@
+const std = @import("std");
+
+pub fn build(b: *std.Build) void {
+ const target = b.standardTargetOptions(.{});
+ const optimize = b.standardOptimizeOption(.{});
+
+ const root = b.addModule("game-mod", .{
+ .optimize = optimize,
+ .target = target,
+ .link_libc = true,
+ });
+
+ root.addCSourceFiles(.{
+ .files = &[_][]const u8 {
+ "src/main.c",
+ }
+ });
+
+ root.linkSystemLibrary("raylib", .{.needed = true});
+
+ const exe = b.addExecutable(.{
+ .name = "game",
+ .root_module = root,
+ });
+
+
+ b.installArtifact(exe);
+}