]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: Add build-scriptlive option
authorJordan Williams <jordan@jwillikers.com>
Mon, 22 Apr 2024 16:08:26 +0000 (11:08 -0500)
committerJordan Williams <jordan@jwillikers.com>
Thu, 25 Apr 2024 12:30:55 +0000 (07:30 -0500)
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 8f6efe8cb65498e9586a7217aac77f25068f770b)

meson.build
meson_options.txt

index e61e88f6925e979e5f7ae31fd2af1468f9b162c1..0a2f0622e19039319a77cdd67150dffc51ef5776 100644 (file)
@@ -2491,6 +2491,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,
@@ -2500,10 +2501,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',
index 65b43fdb6d145693e3954ee149d396e7b5564a5f..77da35d99a394c3e4d7f3d434bb6ee02f771053c 100644 (file)
@@ -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')