lib-vt: Add SemanticVersion to module

- Provide SONAME versioned shared libraries with major version numbers
to separate ABI breaks
pull/8938/head
azhn 2025-09-28 17:46:24 +10:00 committed by Mitchell Hashimoto
parent 0cc3728803
commit 837ac9be77
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ pub fn initShared(
const lib = b.addSharedLibrary(.{ const lib = b.addSharedLibrary(.{
.name = "ghostty-vt", .name = "ghostty-vt",
.root_module = zig.vt_c, .root_module = zig.vt_c,
.version = std.SemanticVersion{ .major = 0, .minor = 1, .patch = 0 },
}); });
lib.installHeader( lib.installHeader(
b.path("include/ghostty/vt.h"), b.path("include/ghostty/vt.h"),