From 5d9080f1eac3147754ade3d50e64f6def4b6eb25 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Thu, 15 Feb 2024 10:21:30 -0400 Subject: New single byte props table --- build.zig | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index f552547..8193f0d 100644 --- a/build.zig +++ b/build.zig @@ -7,35 +7,14 @@ pub fn build(b: *std.Build) void { const ziglyph = b.dependency("ziglyph", .{}); const gbp_gen_exe = b.addExecutable(.{ - .name = "grapheme_break", - .root_source_file = .{ .path = "codegen/grapheme_break.zig" }, + .name = "gbp", + .root_source_file = .{ .path = "codegen/gbp.zig" }, .target = b.host, .optimize = .Debug, }); - gbp_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.zig"); - const emoji_gen_exe = b.addExecutable(.{ - .name = "emoji", - .root_source_file = .{ .path = "codegen/emoji.zig" }, - .target = b.host, - .optimize = .Debug, - }); - emoji_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); - 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" }, @@ -44,8 +23,6 @@ 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); @@ -62,8 +39,6 @@ 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