From 25d843cb4285f4a0c99952792568f4faff5c533f Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Wed, 14 Feb 2024 18:46:33 -0400 Subject: Passing Unicode 15.1.0 Grapheme Break Tests --- build.zig | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 442e713..f552547 100644 --- a/build.zig +++ b/build.zig @@ -26,6 +26,16 @@ pub fn build(b: *std.Build) void { const run_emoji_gen_exe = b.addRunArtifact(emoji_gen_exe); const emoji_gen_out = run_emoji_gen_exe.addOutputFileArg("emoji.zig"); + const indic_gen_exe = b.addExecutable(.{ + .name = "indic", + .root_source_file = .{ .path = "codegen/indic.zig" }, + .target = b.host, + .optimize = .Debug, + }); + indic_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); + const run_indic_gen_exe = b.addRunArtifact(indic_gen_exe); + const indic_gen_out = run_indic_gen_exe.addOutputFileArg("indic.zig"); + const exe = b.addExecutable(.{ .name = "zgbench", .root_source_file = .{ .path = "src/main.zig" }, @@ -35,6 +45,7 @@ pub fn build(b: *std.Build) void { exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); exe.root_module.addAnonymousImport("emoji", .{ .root_source_file = emoji_gen_out }); + exe.root_module.addAnonymousImport("indic", .{ .root_source_file = indic_gen_out }); b.installArtifact(exe); const run_cmd = b.addRunArtifact(exe); @@ -52,6 +63,7 @@ pub fn build(b: *std.Build) void { exe_unit_tests.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); exe_unit_tests.root_module.addAnonymousImport("emoji", .{ .root_source_file = emoji_gen_out }); + exe_unit_tests.root_module.addAnonymousImport("indic", .{ .root_source_file = indic_gen_out }); const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); -- cgit v1.2.3