diff options
author | Rutger Broekhoff | 2021-05-26 21:02:14 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2021-05-26 21:02:14 +0200 |
commit | 31cc713dccab3e547169c790e8a3be694f1280b0 (patch) | |
tree | 010c105f54062940d00d8fbbcf4c51fbd7c488e6 /build.zig | |
parent | 5ac266fabc7b6d0fb49ac97b1661c324eb871be6 (diff) | |
download | zig-nkeys-31cc713dccab3e547169c790e8a3be694f1280b0.tar.gz zig-nkeys-31cc713dccab3e547169c790e8a3be694f1280b0.zip |
Move src/lib.zig to src/main.zig, release 0.2.00.2.0
Rationale: `zig init-lib` generates src/main.zig, not src/lib.zig. Also,
libraries like hzzp (https://github.com/truemedian/hzzp) use
src/main.zig instead of src/lib.zig. This is a breaking change.
Diffstat (limited to 'build.zig')
-rw-r--r-- | build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
4 | const mode = b.standardReleaseOptions(); | 4 | const mode = b.standardReleaseOptions(); |
5 | const target = b.standardTargetOptions(.{}); | 5 | const target = b.standardTargetOptions(.{}); |
6 | 6 | ||
7 | var lib_tests = b.addTest("src/lib.zig"); | 7 | var lib_tests = b.addTest("src/main.zig"); |
8 | lib_tests.setBuildMode(mode); | 8 | lib_tests.setBuildMode(mode); |
9 | 9 | ||
10 | const test_step = b.step("test", "Run library tests"); | 10 | const test_step = b.step("test", "Run library tests"); |
@@ -14,7 +14,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
14 | 14 | ||
15 | var znk_tests = b.addTest("tool/znk.zig"); | 15 | var znk_tests = b.addTest("tool/znk.zig"); |
16 | znk_tests.setBuildMode(mode); | 16 | znk_tests.setBuildMode(mode); |
17 | znk_tests.addPackagePath("nkeys", "src/lib.zig"); | 17 | znk_tests.addPackagePath("nkeys", "src/main.zig"); |
18 | znk_tests.addBuildOption([]const u8, "version", znk_version); | 18 | znk_tests.addBuildOption([]const u8, "version", znk_version); |
19 | 19 | ||
20 | const znk_test_step = b.step("test-znk", "Run znk tests"); | 20 | const znk_test_step = b.step("test-znk", "Run znk tests"); |
@@ -23,7 +23,7 @@ pub fn build(b: *std.build.Builder) !void { | |||
23 | const znk = b.addExecutable("znk", "tool/znk.zig"); | 23 | const znk = b.addExecutable("znk", "tool/znk.zig"); |
24 | znk.setBuildMode(mode); | 24 | znk.setBuildMode(mode); |
25 | znk.setTarget(target); | 25 | znk.setTarget(target); |
26 | znk.addPackagePath("nkeys", "src/lib.zig"); | 26 | znk.addPackagePath("nkeys", "src/main.zig"); |
27 | znk.addBuildOption([]const u8, "version", znk_version); | 27 | znk.addBuildOption([]const u8, "version", znk_version); |
28 | 28 | ||
29 | const znk_install = b.addInstallArtifact(znk); | 29 | const znk_install = b.addInstallArtifact(znk); |