diff options
| author | Gabriel Schneider <[email protected]> | 2026-06-13 22:26:03 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-06-25 11:23:20 -0300 |
| commit | 7e3240817c888ec3fa4c553cd77695e8d106598f (patch) | |
| tree | b4bee2bee9d6dd2c008ad5eae5ba5f840beb67c5 /build.zig | |
| download | pardes-7e3240817c888ec3fa4c553cd77695e8d106598f.tar.gz pardes-7e3240817c888ec3fa4c553cd77695e8d106598f.zip | |
day-00: basic mouse and showing cwd relative fs
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/build.zig b/build.zig new file mode 100644 index 00000000..14066cf3 --- /dev/null +++ b/build.zig @@ -0,0 +1,27 @@ +const std = @import("std"); + +pub fn build(b: *std.Build) void { + const optimize = b.standardOptimizeOption(.{}); + const target = b.standardTargetOptions(.{}); + + const vaxis_dep = b.dependency("vaxis", .{ + .target = target, + .optimize = optimize, + }); + + const exe = b.addExecutable(.{ + .name = "pardes", + .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("main.zig"), + }), + }); + + exe.root_module.addImport("vaxis", vaxis_dep.module("vaxis")); + + const run_exe = b.addRunArtifact(exe); + + const run = b.step("run", "descend to the pardes"); + run.dependOn(&run_exe.step); +} |
