aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-01-02 10:06:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-01-13 12:42:11 +0000
commitb8fc56ecb49e26ab3fcc37fae7565c279fa43b6b (patch)
tree90c5005ba3fbc35d0ac69feb192fd8068da6aa7c /meson.build
parenttest: config: tweak.grapheme-shaping can’t be set when grapheme-clustering has been disabled (diff)
script: add generate-builtin-terminfo.py
This script parses a terminfo source file and generates a C header file with a static struct containing terminfo names and their values. The table is sorted on the capability names
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build12
1 files changed, 11 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 29f27ec9..fb2c8937 100644
--- a/meson.build
+++ b/meson.build
@@ -136,6 +136,16 @@ version = custom_target(
output: 'version.h',
command: [env, 'LC_ALL=C', generate_version_sh, meson.project_version(), '@CURRENT_SOURCE_DIR@', '@OUTPUT@'])
+python = find_program('python3', native: true)
+generate_builtin_terminfo_py = files('scripts/generate-builtin-terminfo.py')
+foot_terminfo = files('foot.info')
+builtin_terminfo = custom_target(
+ 'generate_builtin_terminfo',
+ output: 'foot-terminfo.h',
+ command: [python, generate_builtin_terminfo_py,
+ '@default_terminfo@', foot_terminfo, 'foot', '@OUTPUT@']
+)
+
common = static_library(
'common',
'log.c', 'log.h',
@@ -213,7 +223,7 @@ executable(
'url-mode.c', 'url-mode.h',
'user-notification.c', 'user-notification.h',
'wayland.c', 'wayland.h',
- wl_proto_src + wl_proto_headers, version,
+ builtin_terminfo, wl_proto_src + wl_proto_headers, version,
dependencies: [math, threads, libepoll, pixman, wayland_client, wayland_cursor, xkb, fontconfig, utf8proc,
tllist, fcft],
link_with: pgolib,