############################################################
-if is_glibc
- exe = executable(
- 'col',
- col_sources,
- include_directories : includes,
- link_with : lib_common,
- install_dir : usrbin_exec_dir,
- install : true)
+opt = not get_option('build-col').require(is_glibc).disabled()
+exe = executable(
+ 'col',
+ col_sources,
+ include_directories : includes,
+ link_with : lib_common,
+ install_dir : usrbin_exec_dir,
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['text-utils/col.1.adoc']
bashcompletions += ['col']
endif
+opt = not get_option('build-colcrt').disabled()
exe = executable(
'colcrt',
colcrt_sources,
include_directories : includes,
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['text-utils/colcrt.1.adoc']
-bashcompletions += ['colcrt']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['text-utils/colcrt.1.adoc']
+ bashcompletions += ['colcrt']
+endif
+opt = not get_option('build-colrm').disabled()
exe = executable(
'colrm',
colrm_sources,
include_directories : includes,
link_with : lib_common,
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['text-utils/colrm.1.adoc']
-bashcompletions += ['colrm']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['text-utils/colrm.1.adoc']
+ bashcompletions += ['colrm']
+endif
+opt = not get_option('build-rev').disabled()
exe = executable(
'rev',
rev_sources,
include_directories : includes,
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['text-utils/rev.1.adoc']
-bashcompletions += ['rev']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['text-utils/rev.1.adoc']
+ bashcompletions += ['rev']
+endif
exe = executable(
'column',
bashcompletions += ['chmem']
endif
+opt = not get_option('build-choom').disabled()
exe = executable(
'choom',
choom_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['sys-utils/choom.1.adoc']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['sys-utils/choom.1.adoc']
+ bashcompletions += ['choom']
+endif
has_seminfo_type = cc.has_type('struct seminfo', args : '-D_GNU_SOURCE', prefix : '#include <sys/sem.h>')
exes += exe
endif
+opt = get_option('build-ctrlaltdel').allowed()
exe = executable(
'ctrlaltdel',
ctrlaltdel_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : sbindir,
- install : true)
-exes += exe
-manadocs += ['sys-utils/ctrlaltdel.8.adoc']
-bashcompletions += ['ctrlaltdel']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['sys-utils/ctrlaltdel.8.adoc']
+ bashcompletions += ['ctrlaltdel']
+endif
have_linux_fs_h = conf.get('HAVE_LINUX_FS_H').to_string() == '1'
bashcompletions += ['setpriv']
endif
+opt = not get_option('build-flock').disabled()
exe = executable(
'flock',
flock_sources,
link_with : [lib_common],
dependencies : realtime_libs,
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['sys-utils/flock.1.adoc']
-bashcompletions += ['flock']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['sys-utils/flock.1.adoc']
+ bashcompletions += ['flock']
+endif
opt = not get_option('build-lsirq').disabled()
exe = executable(
bashcompletions += ['hwclock']
endif
+opt = not get_option('build-mkfs').disabled()
exe = executable(
'mkfs',
mkfs_sources,
include_directories : includes,
install_dir : sbindir,
- install : true)
-exes += exe
-manadocs += ['disk-utils/mkfs.8.adoc']
-bashcompletions += ['mkfs']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['disk-utils/mkfs.8.adoc']
+ bashcompletions += ['mkfs']
+endif
opt = not get_option('build-bfs').disabled()
exe = executable(
bashcompletions += ['mkfs.bfs']
endif
+opt = not get_option('build-isosize').disabled()
exe = executable(
'isosize',
isosize_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['disk-utils/isosize.8.adoc']
-bashcompletions += ['isosize']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['disk-utils/isosize.8.adoc']
+ bashcompletions += ['isosize']
+endif
exe = executable(
'mkswap',
exes += exe
endif
-opt = get_option('build-scriptlive').require(have_pty).allowed()
+opt = get_option('build-scriptutils').require(have_pty).allowed()
exe = executable(
'scriptlive',
scriptlive_sources,
link_with : [lib_common],
dependencies : [math_libs],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['term-utils/scriptreplay.1.adoc']
-bashcompletions += ['scriptreplay']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['term-utils/scriptreplay.1.adoc']
+ bashcompletions += ['scriptreplay']
+endif
opt = not get_option('build-agetty').disabled()
exe = executable(
exes += exe
endif
+opt = not get_option('build-look').disabled()
exe = executable(
'look',
look_sources,
include_directories : includes,
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['misc-utils/look.1.adoc']
-bashcompletions += ['look']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/look.1.adoc']
+ bashcompletions += ['look']
+endif
+opt = not get_option('build-mcookie').disabled()
exe = executable(
'mcookie',
mcookie_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['misc-utils/mcookie.1.adoc']
-bashcompletions += ['mcookie']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/mcookie.1.adoc']
+ bashcompletions += ['mcookie']
+endif
if build_liblastlog2
exe = executable(
]
endif
+opt = not get_option('build-namei').disabled()
exe = executable(
'namei',
namei_sources,
include_directories : includes,
dependencies : [lib_selinux],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['misc-utils/namei.1.adoc']
-bashcompletions += ['namei']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/namei.1.adoc']
+ bashcompletions += ['namei']
+endif
+opt = not get_option('build-whereis').disabled()
exe = executable(
'whereis',
whereis_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['misc-utils/whereis.1.adoc']
-bashcompletions += ['whereis']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/whereis.1.adoc']
+ bashcompletions += ['whereis']
+endif
opt = not get_option('build-lslocks').disabled()
exe = executable(
bashcompletions += ['findmnt']
endif
+opt = not get_option('build-kill').disabled()
exe = executable(
'kill',
kill_sources,
include_directories : includes,
link_with : [lib_common],
- install : true)
-if not is_disabler(exe)
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['misc-utils/kill.1.adoc']
endif
bashcompletions += ['rename']
endif
+opt = not get_option('build-getopt').disabled()
exe = executable(
'getopt',
getopt_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['misc-utils/getopt.1.adoc']
-bashcompletions += ['getopt']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/getopt.1.adoc']
+ bashcompletions += ['getopt']
+endif
exe = executable(
'fincore',
bashcompletions += ['fincore']
endif
+opt = get_option('build-hardlink').allowed()
exe = executable(
'hardlink',
hardlink_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-if not is_disabler(exe)
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['misc-utils/hardlink.1.adoc']
bashcompletions += ['hardlink']
bashcompletions += ['fadvise']
endif
-if LINUX and conf.get('HAVE_PIDFD_OPEN').to_string() == '1'
- exe = executable(
- 'waitpid',
- waitpid_sources,
- include_directories : includes,
- link_with : [lib_common],
- install_dir : usrbin_exec_dir,
- install : true)
- if not is_disabler(exe)
- exes += exe
- manadocs += ['misc-utils/waitpid.1.adoc']
- bashcompletions += ['waitpid']
- endif
+opt = get_option('build-waitpid').require(LINUX and conf.get('HAVE_PIDFD_OPEN').to_string() == '1').allowed()
+exe = executable(
+ 'waitpid',
+ waitpid_sources,
+ include_directories : includes,
+ link_with : [lib_common],
+ install_dir : usrbin_exec_dir,
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['misc-utils/waitpid.1.adoc']
+ bashcompletions += ['waitpid']
endif
syscalls_h = custom_target('syscalls.h',
bashcompletions += ['lsclocks']
endif
-if conf.get('HAVE_RENAMEAT2').to_string() == '1'
+opt = get_option('build-exch').require(conf.get('HAVE_RENAMEAT2').to_string() == '1').allowed()
exe = executable(
'exch',
exch_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-if not is_disabler(exe)
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['misc-utils/exch.1.adoc']
bashcompletions += ['exch']
endif
-endif
############################################################
description : 'build zramctl')
option('build-lsns', type : 'feature',
description : 'build lsns')
+option('build-mkfs', type : 'feature',
+ description : 'build mkfs')
option('build-fsck', type : 'feature',
description : 'build fsck')
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-scriptutils', type : 'feature',
+ description : 'build scriptutils')
+option('build-col', type : 'feature',
+ description : 'build col')
+option('build-colcrt', type : 'feature',
+ description : 'build colcrt')
+option('build-colrm', type : 'feature',
+ description : 'build colrm')
+option('build-rev', type : 'feature',
+ description : 'build rev')
option('build-uuidd', type : 'feature',
description : 'build the uuid daemon')
+option('build-choom', type : 'feature',
+ description : 'build choom')
+option('build-isosize', type : 'feature',
+ description : 'build isosize')
+option('build-waitpid', type : 'feature',
+ description : 'build waitpid')
option('build-wipefs', type : 'feature',
description : 'build wipefs')
option('build-mountpoint', type : 'feature',
description : 'build cal')
option('build-logger', type : 'feature',
description : 'build logger')
+option('build-look', type : 'feature',
+ description : 'build look')
+option('build-mcookie', type : 'feature',
+ description : 'build mcookie')
+option('build-namei', type : 'feature',
+ description : 'build namei')
+option('build-whereis', type : 'feature',
+ description : 'build whereis')
option('build-lsblk', type : 'feature',
description : 'build lsblk')
option('build-lslocks', type : 'feature',
description : 'switch_root')
option('build-pivot_root', type : 'feature',
description : 'build pivot_root')
+option('build-flock', type : 'feature',
+ description : 'build flock')
option('build-lsmem', type : 'feature',
description : 'build lsmem')
option('build-lsirq', type : 'feature',
description : 'build fstrim')
option('build-dmesg', type : 'feature',
description : 'build dmesg')
+option('build-ctrlaltdel', type : 'feature',
+ description : 'build ctrlaltdel')
+option('build-exch', type : 'feature',
+ description : 'build exch')
option('build-fsfreeze', type : 'feature',
description : 'build fsfreeze')
option('build-blkdiscard', type : 'feature',
description : 'build enosys')
option('build-lsclocks', type : 'feature',
description : 'build lsclocks')
+option('build-getopt', type : 'feature',
+ description : 'build getopt')
option('build-setterm', type : 'feature',
description : 'build setterm')
option('build-schedutils', type : 'feature',