aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.zig14
1 files changed, 7 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index 3053d64..436cdf9 100644
--- a/build.zig
+++ b/build.zig
@@ -13,21 +13,21 @@ pub fn build(b: *std.build.Builder) !void {
13 13
14 const version = "0.1.0-dev"; 14 const version = "0.1.0-dev";
15 15
16 const lib = b.addStaticLibrary("zats", "src/main.zig"); 16 const lib = b.addStaticLibrary("zats", "src/nkeys.zig");
17 lib.setBuildMode(mode); 17 lib.setBuildMode(mode);
18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 18 lib.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
19 lib.install(); 19 lib.install();
20 20
21 var main_tests = b.addTest("src/nkeys.zig"); 21 var lib_tests = b.addTest("src/nkeys.zig");
22 main_tests.setBuildMode(mode); 22 lib_tests.setBuildMode(mode);
23 main_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 23 lib_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
24 24
25 var znk_tests = b.addTest("src/znk.zig"); 25 var znk_tests = b.addTest("src/znk.zig");
26 main_tests.setBuildMode(mode); 26 znk_tests.setBuildMode(mode);
27 main_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version)); 27 znk_tests.addBuildOption([:0]const u8, "version", try b.allocator.dupeZ(u8, version));
28 28
29 const test_step = b.step("test", "Run library tests"); 29 const test_step = b.step("test", "Run library tests");
30 test_step.dependOn(&main_tests.step); 30 test_step.dependOn(&lib_tests.step);
31 31
32 const znk_test_step = b.step("znk-test", "Run znk tests"); 32 const znk_test_step = b.step("znk-test", "Run znk tests");
33 znk_test_step.dependOn(&znk_tests.step); 33 znk_test_step.dependOn(&znk_tests.step);