From 69f10d7732cd30bc0aeadda96d92d50cea6b67c5 Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Tue, 7 Jul 2026 14:27:23 +0500 Subject: project init --- build.zig | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 build.zig (limited to 'build.zig') 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); +} -- cgit v1.3