blob: db20bc4af9affddf6b2b592ab13f309e08fae2a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From 4706c09368f156f660609fef3d9e9adaf1f5b966 Mon Sep 17 00:00:00 2001
From: sin-ack <sin-ack@protonmail.com>
Date: Thu, 30 Jan 2025 22:59:57 +0000
Subject: [PATCH] build: Add a step for only building terminfo
Avoids building the rest of Ghostty which takes quite a while.
---
src/build/GhosttyResources.zig | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/build/GhosttyResources.zig b/src/build/GhosttyResources.zig
index 266069f83..fab75212b 100644
--- a/src/build/GhosttyResources.zig
+++ b/src/build/GhosttyResources.zig
@@ -103,6 +103,11 @@ pub fn init(b: *std.Build, cfg: *const Config) !GhosttyResources {
copy_step.addArg(b.fmt("{s}/share", .{b.install_path}));
copy_step.step.dependOn(&mkdir_step.step);
try steps.append(©_step.step);
+
+ // This step is to generate the terminfo data without building the rest of
+ // Ghostty which takes a long time.
+ const terminfo_step = b.step("terminfo", "Install the terminfo database");
+ terminfo_step.dependOn(©_step.step);
}
}
--
2.49.1
|