hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-07 21:43:38 +0200
committerhachem <im@hachem.wtf>2026-10-07 21:43:38 +0200
commite55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 (patch)
tree0a52300c63a011683ceba1642e6f7c24e4d367ef /build.zig
parent5d4a723a5f157c0ed38a348099a600d1d21c3c2b (diff)
feat: tty and ttf, you'd think somethn starting with tt would be fun to do...
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig14
1 files changed, 14 insertions, 0 deletions
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",