add(layout/tab): Tab layout implementation
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 9m46s

This commit is contained in:
2024-11-21 23:27:00 +01:00
parent 6cd78d0418
commit c0c7b9f925
5 changed files with 440 additions and 0 deletions

View File

@@ -73,6 +73,14 @@ pub fn build(b: *std.Build) void {
});
tui_example.root_module.addImport("zterm", lib);
const tabs_example = b.addExecutable(.{
.name = "tabs",
.root_source_file = b.path("examples/tabs.zig"),
.target = target,
.optimize = optimize,
});
tabs_example.root_module.addImport("zterm", lib);
// This declares intent for the executable to be installed into the
// standard location when the user invokes the "install" step (the default
// step when running `zig build`).
@@ -81,6 +89,7 @@ pub fn build(b: *std.Build) void {
b.installArtifact(padding_example);
b.installArtifact(exec_example);
b.installArtifact(tui_example);
b.installArtifact(tabs_example);
// Creates a step for unit testing. This only builds the test executable
// but does not run it.