diff options
| author | 2024-02-15 10:21:30 -0400 | |
|---|---|---|
| committer | 2024-02-15 10:21:30 -0400 | |
| commit | 5d9080f1eac3147754ade3d50e64f6def4b6eb25 (patch) | |
| tree | a6de7e9881a8743026ee5e2fd63b12ec0a3e1773 /build.zig | |
| parent | Combinedd Indic ifs (diff) | |
| download | zg-5d9080f1eac3147754ade3d50e64f6def4b6eb25.tar.gz zg-5d9080f1eac3147754ade3d50e64f6def4b6eb25.tar.xz zg-5d9080f1eac3147754ade3d50e64f6def4b6eb25.zip | |
New single byte props table
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 29 |
1 files changed, 2 insertions, 27 deletions
| @@ -7,35 +7,14 @@ pub fn build(b: *std.Build) void { | |||
| 7 | const ziglyph = b.dependency("ziglyph", .{}); | 7 | const ziglyph = b.dependency("ziglyph", .{}); |
| 8 | 8 | ||
| 9 | const gbp_gen_exe = b.addExecutable(.{ | 9 | const gbp_gen_exe = b.addExecutable(.{ |
| 10 | .name = "grapheme_break", | 10 | .name = "gbp", |
| 11 | .root_source_file = .{ .path = "codegen/grapheme_break.zig" }, | 11 | .root_source_file = .{ .path = "codegen/gbp.zig" }, |
| 12 | .target = b.host, | 12 | .target = b.host, |
| 13 | .optimize = .Debug, | 13 | .optimize = .Debug, |
| 14 | }); | 14 | }); |
| 15 | gbp_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | ||
| 16 | const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); | 15 | const run_gbp_gen_exe = b.addRunArtifact(gbp_gen_exe); |
| 17 | const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.zig"); | 16 | const gbp_gen_out = run_gbp_gen_exe.addOutputFileArg("gbp.zig"); |
| 18 | 17 | ||
| 19 | const emoji_gen_exe = b.addExecutable(.{ | ||
| 20 | .name = "emoji", | ||
| 21 | .root_source_file = .{ .path = "codegen/emoji.zig" }, | ||
| 22 | .target = b.host, | ||
| 23 | .optimize = .Debug, | ||
| 24 | }); | ||
| 25 | emoji_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | ||
| 26 | const run_emoji_gen_exe = b.addRunArtifact(emoji_gen_exe); | ||
| 27 | const emoji_gen_out = run_emoji_gen_exe.addOutputFileArg("emoji.zig"); | ||
| 28 | |||
| 29 | const indic_gen_exe = b.addExecutable(.{ | ||
| 30 | .name = "indic", | ||
| 31 | .root_source_file = .{ .path = "codegen/indic.zig" }, | ||
| 32 | .target = b.host, | ||
| 33 | .optimize = .Debug, | ||
| 34 | }); | ||
| 35 | indic_gen_exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | ||
| 36 | const run_indic_gen_exe = b.addRunArtifact(indic_gen_exe); | ||
| 37 | const indic_gen_out = run_indic_gen_exe.addOutputFileArg("indic.zig"); | ||
| 38 | |||
| 39 | const exe = b.addExecutable(.{ | 18 | const exe = b.addExecutable(.{ |
| 40 | .name = "zgbench", | 19 | .name = "zgbench", |
| 41 | .root_source_file = .{ .path = "src/main.zig" }, | 20 | .root_source_file = .{ .path = "src/main.zig" }, |
| @@ -44,8 +23,6 @@ pub fn build(b: *std.Build) void { | |||
| 44 | }); | 23 | }); |
| 45 | exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | 24 | exe.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); |
| 46 | exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | 25 | exe.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); |
| 47 | exe.root_module.addAnonymousImport("emoji", .{ .root_source_file = emoji_gen_out }); | ||
| 48 | exe.root_module.addAnonymousImport("indic", .{ .root_source_file = indic_gen_out }); | ||
| 49 | b.installArtifact(exe); | 26 | b.installArtifact(exe); |
| 50 | 27 | ||
| 51 | const run_cmd = b.addRunArtifact(exe); | 28 | const run_cmd = b.addRunArtifact(exe); |
| @@ -62,8 +39,6 @@ pub fn build(b: *std.Build) void { | |||
| 62 | }); | 39 | }); |
| 63 | exe_unit_tests.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); | 40 | exe_unit_tests.root_module.addImport("ziglyph", ziglyph.module("ziglyph")); |
| 64 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | 41 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); |
| 65 | exe_unit_tests.root_module.addAnonymousImport("emoji", .{ .root_source_file = emoji_gen_out }); | ||
| 66 | exe_unit_tests.root_module.addAnonymousImport("indic", .{ .root_source_file = indic_gen_out }); | ||
| 67 | 42 | ||
| 68 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); | 43 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); |
| 69 | 44 | ||