From: Jordan Williams Date: Mon, 22 Apr 2024 16:08:26 +0000 (-0500) Subject: meson: Add build-scriptlive option X-Git-Tag: v2.42-start~379^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f6efe8cb65498e9586a7217aac77f25068f770b;p=thirdparty%2Futil-linux.git meson: Add build-scriptlive option Signed-off-by: Jordan Williams --- diff --git a/meson.build b/meson.build index 69cdc7c61..391f71d8b 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 b993de7f0..795852361 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')