Allow the build of the target to be disabled by the user and also enable
the addition of platform restrictions.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
bashcompletions += ['swapoff']
endif
+opt = get_option('build-lscpu').allowed()
exe = executable(
'lscpu',
lscpu_sources,
lib_smartcols],
dependencies : [rtas_libs],
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 += lscpu_manadocs
bashcompletions += ['lscpu']
description : 'build prlimit')
option('build-fincore', type : 'feature',
description : 'build fincore')
+option('build-lscpu', type : 'feature',
+ description : 'build lscpu')
# static programs