diff options
| author | samposa_1337 <lososhome1@gmail.com> | 2026-10-28 01:38:40 +0300 |
|---|---|---|
| committer | samposa_1337 <lososhome1@gmail.com> | 2026-10-28 01:38:40 +0300 |
| commit | 9b594927f9c8ef1cfc3f2aff2fc866f387bfbefd (patch) | |
| tree | feaccf70ff54287c9cc06f7297fab8f1d48bb20b /build.zig | |
first commit
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build.zig b/build.zig new file mode 100644 index 0000000..6c1a770 --- /dev/null +++ b/build.zig @@ -0,0 +1,26 @@ +const std = @import("std"); + +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); + const optimize = b.standardOptimizeOption(.{}); + + const exe = b.addExecutable(.{ + .name = "Ezfetch", + .root_source_file = b.path("src/main.zig"), + .target = target, + .optimize = optimize, + }); + + b.installArtifact(exe); + + const run_cmd = b.addRunArtifact(exe); + run_cmd.step.dependOn(b.getInstallStep()); + + if (b.args) |args| { + run_cmd.addArgs(args); + } + + const run_step = b.step("run", "Run the app"); + run_step.dependOn(&run_cmd.step); + +} |
