diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 12 |
1 files changed, 7 insertions, 5 deletions
| @@ -103,7 +103,7 @@ pub fn build(b: *std.Build) void { | |||
| 103 | }); | 103 | }); |
| 104 | compat_gen_exe.root_module.addAnonymousImport("UnicodeData.txt", .{ .root_source_file = b.path("data/unicode/UnicodeData.txt") }); | 104 | compat_gen_exe.root_module.addAnonymousImport("UnicodeData.txt", .{ .root_source_file = b.path("data/unicode/UnicodeData.txt") }); |
| 105 | const run_compat_gen_exe = b.addRunArtifact(compat_gen_exe); | 105 | const run_compat_gen_exe = b.addRunArtifact(compat_gen_exe); |
| 106 | const compat_gen_out = run_compat_gen_exe.addOutputFileArg("compat.bin.z"); | 106 | const compat_gen_out = run_compat_gen_exe.addOutputFileArg("compat.zig"); |
| 107 | 107 | ||
| 108 | const hangul_gen_exe = b.addExecutable(.{ | 108 | const hangul_gen_exe = b.addExecutable(.{ |
| 109 | .name = "hangul", | 109 | .name = "hangul", |
| @@ -115,7 +115,7 @@ pub fn build(b: *std.Build) void { | |||
| 115 | }); | 115 | }); |
| 116 | hangul_gen_exe.root_module.addAnonymousImport("HangulSyllableType.txt", .{ .root_source_file = b.path("data/unicode/HangulSyllableType.txt") }); | 116 | hangul_gen_exe.root_module.addAnonymousImport("HangulSyllableType.txt", .{ .root_source_file = b.path("data/unicode/HangulSyllableType.txt") }); |
| 117 | const run_hangul_gen_exe = b.addRunArtifact(hangul_gen_exe); | 117 | const run_hangul_gen_exe = b.addRunArtifact(hangul_gen_exe); |
| 118 | const hangul_gen_out = run_hangul_gen_exe.addOutputFileArg("hangul.bin.z"); | 118 | const hangul_gen_out = run_hangul_gen_exe.addOutputFileArg("hangul.zig"); |
| 119 | 119 | ||
| 120 | const normp_gen_exe = b.addExecutable(.{ | 120 | const normp_gen_exe = b.addExecutable(.{ |
| 121 | .name = "normp", | 121 | .name = "normp", |
| @@ -127,7 +127,7 @@ pub fn build(b: *std.Build) void { | |||
| 127 | }); | 127 | }); |
| 128 | normp_gen_exe.root_module.addAnonymousImport("DerivedNormalizationProps.txt", .{ .root_source_file = b.path("data/unicode/DerivedNormalizationProps.txt") }); | 128 | normp_gen_exe.root_module.addAnonymousImport("DerivedNormalizationProps.txt", .{ .root_source_file = b.path("data/unicode/DerivedNormalizationProps.txt") }); |
| 129 | const run_normp_gen_exe = b.addRunArtifact(normp_gen_exe); | 129 | const run_normp_gen_exe = b.addRunArtifact(normp_gen_exe); |
| 130 | const normp_gen_out = run_normp_gen_exe.addOutputFileArg("normp.bin.z"); | 130 | const normp_gen_out = run_normp_gen_exe.addOutputFileArg("normp.zig"); |
| 131 | 131 | ||
| 132 | const ccc_gen_exe = b.addExecutable(.{ | 132 | const ccc_gen_exe = b.addExecutable(.{ |
| 133 | .name = "ccc", | 133 | .name = "ccc", |
| @@ -139,7 +139,7 @@ pub fn build(b: *std.Build) void { | |||
| 139 | }); | 139 | }); |
| 140 | ccc_gen_exe.root_module.addAnonymousImport("DerivedCombiningClass.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedCombiningClass.txt") }); | 140 | ccc_gen_exe.root_module.addAnonymousImport("DerivedCombiningClass.txt", .{ .root_source_file = b.path("data/unicode/extracted/DerivedCombiningClass.txt") }); |
| 141 | const run_ccc_gen_exe = b.addRunArtifact(ccc_gen_exe); | 141 | const run_ccc_gen_exe = b.addRunArtifact(ccc_gen_exe); |
| 142 | const ccc_gen_out = run_ccc_gen_exe.addOutputFileArg("ccc.bin.z"); | 142 | const ccc_gen_out = run_ccc_gen_exe.addOutputFileArg("ccc.zig"); |
| 143 | 143 | ||
| 144 | const gencat_gen_exe = b.addExecutable(.{ | 144 | const gencat_gen_exe = b.addExecutable(.{ |
| 145 | .name = "gencat", | 145 | .name = "gencat", |
| @@ -164,7 +164,7 @@ pub fn build(b: *std.Build) void { | |||
| 164 | fold_gen_exe.root_module.addAnonymousImport("DerivedCoreProperties.txt", .{ .root_source_file = b.path("data/unicode/DerivedCoreProperties.txt") }); | 164 | fold_gen_exe.root_module.addAnonymousImport("DerivedCoreProperties.txt", .{ .root_source_file = b.path("data/unicode/DerivedCoreProperties.txt") }); |
| 165 | fold_gen_exe.root_module.addAnonymousImport("CaseFolding.txt", .{ .root_source_file = b.path("data/unicode/CaseFolding.txt") }); | 165 | fold_gen_exe.root_module.addAnonymousImport("CaseFolding.txt", .{ .root_source_file = b.path("data/unicode/CaseFolding.txt") }); |
| 166 | const run_fold_gen_exe = b.addRunArtifact(fold_gen_exe); | 166 | const run_fold_gen_exe = b.addRunArtifact(fold_gen_exe); |
| 167 | const fold_gen_out = run_fold_gen_exe.addOutputFileArg("fold.bin.z"); | 167 | const fold_gen_out = run_fold_gen_exe.addOutputFileArg("fold.zig"); |
| 168 | 168 | ||
| 169 | // Numeric types | 169 | // Numeric types |
| 170 | const num_gen_exe = b.addExecutable(.{ | 170 | const num_gen_exe = b.addExecutable(.{ |
| @@ -518,6 +518,8 @@ pub fn build(b: *std.Build) void { | |||
| 518 | test_unicode_step.dependOn(&run_unicode_tests.step); | 518 | test_unicode_step.dependOn(&run_unicode_tests.step); |
| 519 | test_unicode_step.dependOn(&display_width_tr.step); | 519 | test_unicode_step.dependOn(&display_width_tr.step); |
| 520 | test_unicode_step.dependOn(&words_tr.step); | 520 | test_unicode_step.dependOn(&words_tr.step); |
| 521 | test_unicode_step.dependOn(&norm_tr.step); | ||
| 522 | test_unicode_step.dependOn(&case_fold_tr.step); | ||
| 521 | 523 | ||
| 522 | const test_step = b.step("test", "Run all module tests"); | 524 | const test_step = b.step("test", "Run all module tests"); |
| 523 | test_step.dependOn(&run_unicode_tests.step); | 525 | test_step.dependOn(&run_unicode_tests.step); |