aboutsummaryrefslogtreecommitdiffstats
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig12
1 files changed, 9 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 947511b..de48e91 100644
--- a/build.zig
+++ b/build.zig
@@ -23,6 +23,15 @@ pub fn build(b: *std.build.Builder) !void {
23 .source_file = .{ .path = "src/main.zig" }, 23 .source_file = .{ .path = "src/main.zig" },
24 }); 24 });
25 25
26 const lib = b.addStaticLibrary(.{
27 .name = "nkeys",
28 .root_source_file = .{ .path = "src/main.zig" },
29 .target = target,
30 .optimize = optimize,
31 });
32
33 b.installArtifact(lib);
34
26 const znk_tests = b.addTest(.{ 35 const znk_tests = b.addTest(.{
27 .root_source_file = .{ .path = "tool/znk.zig" }, 36 .root_source_file = .{ .path = "tool/znk.zig" },
28 .target = target, 37 .target = target,
@@ -46,9 +55,6 @@ pub fn build(b: *std.build.Builder) !void {
46 55
47 b.installArtifact(znk); 56 b.installArtifact(znk);
48 57
49 const znk_step = b.step("znk", "Build znk");
50 znk_step.dependOn(b.getInstallStep());
51
52 const znk_run_cmd = b.addRunArtifact(znk); 58 const znk_run_cmd = b.addRunArtifact(znk);
53 znk_run_cmd.step.dependOn(b.getInstallStep()); 59 znk_run_cmd.step.dependOn(b.getInstallStep());
54 if (b.args) |args| { 60 if (b.args) |args| {