add(zterm): intial implementation of tui app
This commit is contained in:
24
build.zig
24
build.zig
@@ -15,29 +15,16 @@ pub fn build(b: *std.Build) void {
|
||||
// set a preferred release mode, allowing the user to decide how to optimize.
|
||||
const optimize = b.standardOptimizeOption(.{});
|
||||
|
||||
// build options to customize the log message formatting
|
||||
const benchmark = b.option(bool, "benchmark", "Create a benchmark build (default: false)") orelse false;
|
||||
|
||||
const options = b.addOptions();
|
||||
options.addOption(bool, "benchmark", benchmark);
|
||||
|
||||
const options_module = options.createModule();
|
||||
|
||||
// Dependencies
|
||||
const vaxis_dep = b.dependency("vaxis", .{
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
});
|
||||
const zlog_dep = b.dependency("zlog", .{
|
||||
const zlog = b.dependency("zlog", .{
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
.timestamp = true,
|
||||
});
|
||||
const zmd_dep = b.dependency("zmd", .{
|
||||
const zterm = b.dependency("zterm", .{
|
||||
.optimize = optimize,
|
||||
.target = target,
|
||||
});
|
||||
const zg_dep = b.dependency("zg", .{});
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "tui-website",
|
||||
@@ -45,11 +32,8 @@ pub fn build(b: *std.Build) void {
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
exe.root_module.addImport("build_options", options_module);
|
||||
exe.root_module.addImport("vaxis", vaxis_dep.module("vaxis"));
|
||||
exe.root_module.addImport("zlog", zlog_dep.module("zlog"));
|
||||
exe.root_module.addImport("zmd", zmd_dep.module("zmd"));
|
||||
exe.root_module.addImport("code_point", zg_dep.module("code_point"));
|
||||
exe.root_module.addImport("zlog", zlog.module("zlog"));
|
||||
exe.root_module.addImport("zterm", zterm.module("zterm"));
|
||||
|
||||
// This declares intent for the executable to be installed into the
|
||||
// standard location when the user invokes the "install" step (the default
|
||||
|
||||
Reference in New Issue
Block a user