mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-30 19:13:55 +00:00
lib-vt: boilerplate to build a shared object
This commit is contained in:
12
build.zig
12
build.zig
@@ -31,6 +31,7 @@ pub fn build(b: *std.Build) !void {
|
||||
|
||||
// All our steps which we'll hook up later. The steps are shown
|
||||
// up here just so that they are more self-documenting.
|
||||
const libvt_step = b.step("lib-vt", "Build libghostty-vt");
|
||||
const run_step = b.step("run", "Run the app");
|
||||
const run_valgrind_step = b.step(
|
||||
"run-valgrind",
|
||||
@@ -86,7 +87,7 @@ pub fn build(b: *std.Build) !void {
|
||||
check_step.dependOn(dist.install_step);
|
||||
}
|
||||
|
||||
// libghostty
|
||||
// libghostty (internal, big)
|
||||
const libghostty_shared = try buildpkg.GhosttyLib.initShared(
|
||||
b,
|
||||
&deps,
|
||||
@@ -96,6 +97,15 @@ pub fn build(b: *std.Build) !void {
|
||||
&deps,
|
||||
);
|
||||
|
||||
// libghostty-vt
|
||||
const libghostty_vt_shared = try buildpkg.GhosttyLibVt.initShared(
|
||||
b,
|
||||
&mod,
|
||||
&deps,
|
||||
);
|
||||
libghostty_vt_shared.install(libvt_step, "libghostty-vt.so");
|
||||
libghostty_vt_shared.installHeader(libvt_step);
|
||||
|
||||
// Helpgen
|
||||
if (config.emit_helpgen) deps.help_strings.install();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user