summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-06-13 22:26:03 -0300
committerGabriel Schneider <[email protected]>2026-06-25 11:23:20 -0300
commit7e3240817c888ec3fa4c553cd77695e8d106598f (patch)
treeb4bee2bee9d6dd2c008ad5eae5ba5f840beb67c5 /build.zig
downloadpardes-7e3240817c888ec3fa4c553cd77695e8d106598f.tar.gz
pardes-7e3240817c888ec3fa4c553cd77695e8d106598f.zip
day-00: basic mouse and showing cwd relative fs
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig27
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);
+}