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 +++++++++--- build.zig.zon | 5 +++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 build.zig.zon 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| { diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..098744d --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,5 @@ +.{ + .name = "zig-nkeys", + .version = "0.5.0", + .paths = .{"."}, +} -- cgit v1.2.3