build/libghostty-vt: export uucode so that it can be re-used

This commit is contained in:
Jeffrey C. Ollie
2026-09-09 01:29:04 -05:00
parent 448062571c
commit 7adbb5160d

View File

@@ -76,6 +76,12 @@ pub fn init(b: *std.Build, cfg: *const Config) !SharedDeps {
.build_config_path = b.path("src/build/uucode_config.zig"),
}).module("uucode");
// Re-export the uucode module so that Zig programs that embed libgtostty-vt
// can use it. This is necessary to use libraries like libvaxis in
// the embedding program that need uucode as well (libvaxis provides
// -Dexternal_uucode for this).
try b.modules.put(b.allocator, b.dupe("uucode"), uucode_mod);
var result: SharedDeps = .{
.config = cfg,
.help_strings = try .init(b, cfg),