diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 24 |
1 files changed, 12 insertions, 12 deletions
| @@ -27,18 +27,18 @@ pub fn build(b: *std.Build) void { | |||
| 27 | const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.zig"); | 27 | const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.zig"); |
| 28 | 28 | ||
| 29 | // Modules we provide | 29 | // Modules we provide |
| 30 | const code_point = b.addModule("CodePoint", .{ | 30 | const code_point = b.addModule("code_point", .{ |
| 31 | .root_source_file = .{ .path = "src/CodePoint.zig" }, | 31 | .root_source_file = .{ .path = "src/code_point.zig" }, |
| 32 | .target = target, | 32 | .target = target, |
| 33 | .optimize = optimize, | 33 | .optimize = optimize, |
| 34 | }); | 34 | }); |
| 35 | 35 | ||
| 36 | const grapheme = b.addModule("Grapheme", .{ | 36 | const grapheme = b.addModule("grapheme", .{ |
| 37 | .root_source_file = .{ .path = "src/Grapheme.zig" }, | 37 | .root_source_file = .{ .path = "src/grapheme.zig" }, |
| 38 | .target = target, | 38 | .target = target, |
| 39 | .optimize = optimize, | 39 | .optimize = optimize, |
| 40 | }); | 40 | }); |
| 41 | grapheme.addImport("CodePoint", code_point); | 41 | grapheme.addImport("code_point", code_point); |
| 42 | grapheme.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | 42 | grapheme.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); |
| 43 | 43 | ||
| 44 | const display_width = b.addModule("display_width", .{ | 44 | const display_width = b.addModule("display_width", .{ |
| @@ -46,8 +46,8 @@ pub fn build(b: *std.Build) void { | |||
| 46 | .target = target, | 46 | .target = target, |
| 47 | .optimize = optimize, | 47 | .optimize = optimize, |
| 48 | }); | 48 | }); |
| 49 | display_width.addImport("CodePoint", code_point); | 49 | display_width.addImport("code_point", code_point); |
| 50 | display_width.addImport("Grapheme", grapheme); | 50 | display_width.addImport("grapheme", grapheme); |
| 51 | display_width.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); | 51 | display_width.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); |
| 52 | 52 | ||
| 53 | // Benchmark rig | 53 | // Benchmark rig |
| @@ -58,8 +58,8 @@ pub fn build(b: *std.Build) void { | |||
| 58 | .optimize = optimize, | 58 | .optimize = optimize, |
| 59 | }); | 59 | }); |
| 60 | exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | 60 | exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); |
| 61 | exe.root_module.addImport("CodePoint", code_point); | 61 | exe.root_module.addImport("code_point", code_point); |
| 62 | exe.root_module.addImport("Grapheme", grapheme); | 62 | exe.root_module.addImport("grapheme", grapheme); |
| 63 | exe.root_module.addImport("display_width", display_width); | 63 | exe.root_module.addImport("display_width", display_width); |
| 64 | b.installArtifact(exe); | 64 | b.installArtifact(exe); |
| 65 | 65 | ||
| @@ -72,12 +72,12 @@ pub fn build(b: *std.Build) void { | |||
| 72 | 72 | ||
| 73 | // Tests | 73 | // Tests |
| 74 | const exe_unit_tests = b.addTest(.{ | 74 | const exe_unit_tests = b.addTest(.{ |
| 75 | .root_source_file = .{ .path = "src/Grapheme.zig" }, | 75 | .root_source_file = .{ .path = "src/grapheme.zig" }, |
| 76 | .target = target, | 76 | .target = target, |
| 77 | .optimize = optimize, | 77 | .optimize = optimize, |
| 78 | }); | 78 | }); |
| 79 | exe_unit_tests.root_module.addImport("CodePoint", code_point); | 79 | exe_unit_tests.root_module.addImport("code_point", code_point); |
| 80 | exe_unit_tests.root_module.addImport("Grapheme", grapheme); | 80 | exe_unit_tests.root_module.addImport("grapheme", grapheme); |
| 81 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | 81 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); |
| 82 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); | 82 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); |
| 83 | 83 | ||