diff options
author | Jordan Williams <jordan@jwillikers.com> | 2024-04-22 11:08:26 -0500 |
---|---|---|
committer | Jordan Williams <jordan@jwillikers.com> | 2024-04-24 15:30:30 -0500 |
commit | 8f6efe8cb65498e9586a7217aac77f25068f770b (patch) | |
tree | 5ce698823cca16d21b6505c010975da13f75b1c1 | |
parent | 236918fcc6d886270e8585cbc594ac71c24b1951 (diff) | |
download | util-linux-8f6efe8cb65498e9586a7217aac77f25068f770b.tar.gz |
meson: Add build-scriptlive option
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r-- | meson.build | 12 | ||||
-rw-r--r-- | meson_options.txt | 2 |
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') |