diff options
| author | 2026-02-04 15:02:12 -0500 | |
|---|---|---|
| committer | 2026-02-04 15:02:12 -0500 | |
| commit | 1a9168ab7d1d5337ec954f7897c2e6b51a0bd95e (patch) | |
| tree | 35847e74f41a0a75870b08d8a5fbbb0f1bd0d378 /build.zig | |
| parent | Merge pull request 'Move part of the `DisplayWidth.strWidth` into its own `Di... (diff) | |
| download | zg-1a9168ab7d1d5337ec954f7897c2e6b51a0bd95e.tar.gz zg-1a9168ab7d1d5337ec954f7897c2e6b51a0bd95e.tar.xz zg-1a9168ab7d1d5337ec954f7897c2e6b51a0bd95e.zip | |
Convert Graphemes to static allocation
And DisplayWidth, although untested at present.
The plan is to just work through the codegen / module pairings, and
move tests over until everything is covered.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 7 |
1 files changed, 5 insertions, 2 deletions
| @@ -52,7 +52,7 @@ pub fn build(b: *std.Build) void { | |||
| 52 | gbp_gen_exe.root_module.addAnonymousImport("GraphemeBreakProperty.txt", .{ .root_source_file = b.path("data/unicode/auxiliary/GraphemeBreakProperty.txt") }); | 52 | gbp_gen_exe.root_module.addAnonymousImport("GraphemeBreakProperty.txt", .{ .root_source_file = b.path("data/unicode/auxiliary/GraphemeBreakProperty.txt") }); |
| 53 | gbp_gen_exe.root_module.addAnonymousImport("emoji-data.txt", .{ .root_source_file = b.path("data/unicode/emoji/emoji-data.txt") }); | 53 | gbp_gen_exe.root_module.addAnonymousImport("emoji-data.txt", .{ .root_source_file = b.path("data/unicode/emoji/emoji-data.txt") }); |
| 54 | const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); | 54 | const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); |
| 55 | const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.bin.z"); | 55 | const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.zig"); |
| 56 | 56 | ||
| 57 | const wbp_gen_exe = b.addExecutable(.{ | 57 | const wbp_gen_exe = b.addExecutable(.{ |
| 58 | .name = "wbp", | 58 | .name = "wbp", |
| @@ -78,7 +78,7 @@ pub fn build(b: *std.Build) void { | |||
| 78 | dwp_gen_exe.root_module.addAnonymousImport("DerivedGeneralCategory.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedGeneralCategory.txt") }); | 78 | dwp_gen_exe.root_module.addAnonymousImport("DerivedGeneralCategory.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedGeneralCategory.txt") }); |
| 79 | dwp_gen_exe.root_module.addOptions("options", dwp_options); | 79 | dwp_gen_exe.root_module.addOptions("options", dwp_options); |
| 80 | const run_dwp_gen_exe = b.addRunArtifact(dwp_gen_exe); | 80 | const run_dwp_gen_exe = b.addRunArtifact(dwp_gen_exe); |
| 81 | const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.bin.z"); | 81 | const dwp_gen_out = run_dwp_gen_exe.addOutputFileArg("dwp.zig"); |
| 82 | 82 | ||
| 83 | // Normalization properties | 83 | // Normalization properties |
| 84 | const canon_gen_exe = b.addExecutable(.{ | 84 | const canon_gen_exe = b.addExecutable(.{ |
| @@ -514,6 +514,9 @@ pub fn build(b: *std.Build) void { | |||
| 514 | 514 | ||
| 515 | const run_unicode_tests = b.addRunArtifact(unicode_tests); | 515 | const run_unicode_tests = b.addRunArtifact(unicode_tests); |
| 516 | 516 | ||
| 517 | const test_unicode_step = b.step("unicode", "Rune unicode tests"); | ||
| 518 | test_unicode_step.dependOn(&run_unicode_tests.step); | ||
| 519 | |||
| 517 | const test_step = b.step("test", "Run all module tests"); | 520 | const test_step = b.step("test", "Run all module tests"); |
| 518 | test_step.dependOn(&run_unicode_tests.step); | 521 | test_step.dependOn(&run_unicode_tests.step); |
| 519 | test_step.dependOn(&code_point_tr.step); | 522 | test_step.dependOn(&code_point_tr.step); |