BSD Sysexits for Zig
1const std = @import("std");
2
3pub fn build(b: *std.Build) void {
4 const target = b.standardTargetOptions(.{});
5
6 // mod
7 const mod = b.addModule("sysexits", .{
8 .root_source_file = b.path("src/root.zig"),
9 .target = target,
10 });
11
12 // build test
13 const mod_tests = b.addTest(.{
14 .root_module = mod,
15 });
16 const run_mod_tests = b.addRunArtifact(mod_tests);
17
18 const test_step = b.step("test", "Run tests");
19 test_step.dependOn(&run_mod_tests.step);
20}