From 97028ba6f45587bafa66cf8596ba1f23ffadf619 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Mon, 4 Dec 2023 19:58:52 +0100 Subject: Version 0.5.0 --- build.zig | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'build.zig') 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 { .source_file = .{ .path = "src/main.zig" }, }); + const lib = b.addStaticLibrary(.{ + .name = "nkeys", + .root_source_file = .{ .path = "src/main.zig" }, + .target = target, + .optimize = optimize, + }); + + b.installArtifact(lib); + const znk_tests = b.addTest(.{ .root_source_file = .{ .path = "tool/znk.zig" }, .target = target, @@ -46,9 +55,6 @@ pub fn build(b: *std.build.Builder) !void { b.installArtifact(znk); - const znk_step = b.step("znk", "Build znk"); - znk_step.dependOn(b.getInstallStep()); - const znk_run_cmd = b.addRunArtifact(znk); znk_run_cmd.step.dependOn(b.getInstallStep()); if (b.args) |args| { -- cgit v1.2.3