diff options
author | Rutger Broekhoff | 2023-12-04 19:58:52 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-04 19:58:52 +0100 |
commit | 97028ba6f45587bafa66cf8596ba1f23ffadf619 (patch) | |
tree | e3ad645e574ab475a0d531710eb5b1da7827f70e | |
parent | ea40ef09edc5dfdc587fc1942c93c4aef88a015e (diff) | |
download | zig-nkeys-0.5.0.tar.gz zig-nkeys-0.5.0.zip |
Version 0.5.00.5.0
-rw-r--r-- | build.zig | 12 | ||||
-rw-r--r-- | build.zig.zon | 5 |
2 files changed, 14 insertions, 3 deletions
@@ -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| { |
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 @@ | |||
1 | .{ | ||
2 | .name = "zig-nkeys", | ||
3 | .version = "0.5.0", | ||
4 | .paths = .{"."}, | ||
5 | } | ||