diff options
| author | 2024-02-28 19:23:23 -0400 | |
|---|---|---|
| committer | 2024-02-28 19:23:23 -0400 | |
| commit | 7cad24f76a72f534084de64153f768699170cd05 (patch) | |
| tree | 0a9eb3b4609a246046952c379ea5e92540623ab7 /build.zig | |
| parent | General Category with GenCatData (diff) | |
| download | zg-7cad24f76a72f534084de64153f768699170cd05.tar.gz zg-7cad24f76a72f534084de64153f768699170cd05.tar.xz zg-7cad24f76a72f534084de64153f768699170cd05.zip | |
Using slices for decompositions in Normalizer
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 13 |
1 files changed, 7 insertions, 6 deletions
| @@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void { | |||
| 5 | const optimize = b.standardOptimizeOption(.{}); | 5 | const optimize = b.standardOptimizeOption(.{}); |
| 6 | 6 | ||
| 7 | // Dependencies | 7 | // Dependencies |
| 8 | const ziglyph = b.dependency("ziglyph", .{}); | 8 | // const ziglyph = b.dependency("ziglyph", .{}); |
| 9 | 9 | ||
| 10 | // Code generation | 10 | // Code generation |
| 11 | // Grapheme break | 11 | // Grapheme break |
| @@ -190,8 +190,8 @@ pub fn build(b: *std.Build) void { | |||
| 190 | .target = target, | 190 | .target = target, |
| 191 | .optimize = optimize, | 191 | .optimize = optimize, |
| 192 | }); | 192 | }); |
| 193 | norm.addImport("ascii", ascii); | ||
| 193 | norm.addImport("code_point", code_point); | 194 | norm.addImport("code_point", code_point); |
| 194 | norm.addImport("ziglyph", ziglyph.module("ziglyph")); | ||
| 195 | norm.addImport("NormData", norm_data); | 195 | norm.addImport("NormData", norm_data); |
| 196 | 196 | ||
| 197 | // General Category | 197 | // General Category |
| @@ -211,11 +211,11 @@ pub fn build(b: *std.Build) void { | |||
| 211 | }); | 211 | }); |
| 212 | // exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | 212 | // exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); |
| 213 | // exe.root_module.addImport("ascii", ascii); | 213 | // exe.root_module.addImport("ascii", ascii); |
| 214 | exe.root_module.addImport("code_point", code_point); | 214 | // exe.root_module.addImport("code_point", code_point); |
| 215 | // exe.root_module.addImport("grapheme", grapheme); | 215 | // exe.root_module.addImport("grapheme", grapheme); |
| 216 | // exe.root_module.addImport("DisplayWidth", display_width); | 216 | // exe.root_module.addImport("DisplayWidth", display_width); |
| 217 | // exe.root_module.addImport("Normalizer", norm); | 217 | exe.root_module.addImport("Normalizer", norm); |
| 218 | exe.root_module.addImport("GenCatData", gencat_data); | 218 | // exe.root_module.addImport("GenCatData", gencat_data); |
| 219 | b.installArtifact(exe); | 219 | b.installArtifact(exe); |
| 220 | 220 | ||
| 221 | const run_cmd = b.addRunArtifact(exe); | 221 | const run_cmd = b.addRunArtifact(exe); |
| @@ -231,7 +231,7 @@ pub fn build(b: *std.Build) void { | |||
| 231 | .target = target, | 231 | .target = target, |
| 232 | .optimize = optimize, | 232 | .optimize = optimize, |
| 233 | }); | 233 | }); |
| 234 | // exe_unit_tests.root_module.addImport("ascii", ascii); | 234 | exe_unit_tests.root_module.addImport("ascii", ascii); |
| 235 | exe_unit_tests.root_module.addImport("code_point", code_point); | 235 | exe_unit_tests.root_module.addImport("code_point", code_point); |
| 236 | // exe_unit_tests.root_module.addImport("GraphemeData", grapheme_data); | 236 | // exe_unit_tests.root_module.addImport("GraphemeData", grapheme_data); |
| 237 | // exe_unit_tests.root_module.addImport("grapheme", grapheme); | 237 | // exe_unit_tests.root_module.addImport("grapheme", grapheme); |
| @@ -239,6 +239,7 @@ pub fn build(b: *std.Build) void { | |||
| 239 | // exe_unit_tests.root_module.addAnonymousImport("normp", .{ .root_source_file = normp_gen_out }); | 239 | // exe_unit_tests.root_module.addAnonymousImport("normp", .{ .root_source_file = normp_gen_out }); |
| 240 | // exe_unit_tests.root_module.addImport("DisplayWidthData", dw_data); | 240 | // exe_unit_tests.root_module.addImport("DisplayWidthData", dw_data); |
| 241 | exe_unit_tests.root_module.addImport("NormData", norm_data); | 241 | exe_unit_tests.root_module.addImport("NormData", norm_data); |
| 242 | // exe_unit_tests.filter = "nfd !ASCII"; | ||
| 242 | 243 | ||
| 243 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); | 244 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); |
| 244 | 245 | ||