From e55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 Mon Sep 17 00:00:00 2001 From: hachem Date: Wed, 7 Oct 2026 21:43:38 +0200 Subject: feat: tty and ttf, you'd think somethn starting with tt would be fun to do... --- build.zig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index d55961f..469d513 100644 --- a/build.zig +++ b/build.zig @@ -70,7 +70,9 @@ pub fn build(b: *std.Build) void { .{ "k_vfs", "kernel/vfs.rv" }, .{ "k_seed", "kernel/seed.rv" }, .{ "k_proc", "kernel/proc.rv" }, + .{ "k_ttf", "kernel/ttf.rv" }, .{ "k_shell", "kernel/shell.rv" }, + .{ "k_tty", "kernel/tty.rv" }, .{ "k_input", "kernel/input.rv" }, .{ "k_main", "kernel/main.rv" }, }) |e| { @@ -84,6 +86,18 @@ pub fn build(b: *std.Build) void { kernel.root_module.addImport("bridge", bridge_mod); + inline for (.{ + .{ "font_vga16", "fonts/vga16.psf" }, + .{ "font_vga8", "fonts/vga8.psf" }, + .{ "font_sun16", "fonts/sun16.psf" }, + .{ "font_acorn8", "fonts/acorn8.psf" }, + .{ "font_pearl8", "fonts/pearl8.psf" }, + .{ "font_dejavu", "fonts/dejavu.ttf" }, + .{ "font_terminess", "fonts/terminess.ttf" }, + }) |e| { + kernel.root_module.addAnonymousImport(e[0], .{ .root_source_file = b.path(e[1]) }); + } + inline for (.{ "hexview", "calc", "primes", "save" }) |prog| { const cc = b.addSystemCommand(&.{ "zig", "cc", -- cgit v1.3