aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Williams <jordan@jwillikers.com>2024-04-22 11:08:26 -0500
committerJordan Williams <jordan@jwillikers.com>2024-04-24 15:30:30 -0500
commit8f6efe8cb65498e9586a7217aac77f25068f770b (patch)
tree5ce698823cca16d21b6505c010975da13f75b1c1
parent236918fcc6d886270e8585cbc594ac71c24b1951 (diff)
downloadutil-linux-8f6efe8cb65498e9586a7217aac77f25068f770b.tar.gz
meson: Add build-scriptlive option
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r--meson.build12
-rw-r--r--meson_options.txt2
2 files changed, 10 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 69cdc7c616..391f71d8b4 100644
--- a/meson.build
+++ b/meson.build
@@ -2545,6 +2545,7 @@ if opt and not is_disabler(exe)
exes += exe
endif
+opt = get_option('build-scriptlive').require(have_pty).allowed()
exe = executable(
'scriptlive',
scriptlive_sources,
@@ -2554,10 +2555,13 @@ exe = executable(
realtime_libs,
math_libs],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['term-utils/scriptlive.1.adoc']
-bashcompletions += ['scriptlive']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['term-utils/scriptlive.1.adoc']
+ bashcompletions += ['scriptlive']
+endif
exe = executable(
'scriptreplay',
diff --git a/meson_options.txt b/meson_options.txt
index b993de7f09..7958523618 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -71,6 +71,8 @@ option('build-partx', type : 'feature',
description : 'build addpart, delpart, partx')
option('build-script', type : 'feature',
description : 'build script')
+option('build-scriptlive', type : 'feature',
+ description : 'build scriptlive')
option('build-uuidd', type : 'feature',
description : 'build the uuid daemon')