add(examples/layout): mixed content with different layout options
This commit is contained in:
10
build.zig
10
build.zig
@@ -12,6 +12,7 @@ pub fn build(b: *std.Build) void {
|
||||
vertical,
|
||||
horizontal,
|
||||
grid,
|
||||
mixed,
|
||||
// styles:
|
||||
};
|
||||
|
||||
@@ -78,6 +79,14 @@ pub fn build(b: *std.Build) void {
|
||||
});
|
||||
grid.root_module.addImport("zterm", lib);
|
||||
|
||||
const mixed = b.addExecutable(.{
|
||||
.name = "mixed",
|
||||
.root_source_file = b.path("examples/layouts/mixed.zig"),
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
mixed.root_module.addImport("zterm", lib);
|
||||
|
||||
// mapping of user selected example to compile step
|
||||
const exe = switch (example) {
|
||||
// elements:
|
||||
@@ -87,6 +96,7 @@ pub fn build(b: *std.Build) void {
|
||||
.vertical => vertical,
|
||||
.horizontal => horizontal,
|
||||
.grid => grid,
|
||||
.mixed => mixed,
|
||||
// styles:
|
||||
};
|
||||
b.installArtifact(exe);
|
||||
|
||||
Reference in New Issue
Block a user