summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 14:27:23 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-07 14:27:23 +0500
commit69f10d7732cd30bc0aeadda96d92d50cea6b67c5 (patch)
tree6e6541c018cb9dfa3734e489f9c25d0765975975 /build.zig
project init
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);
+}