endif
opt = not get_option('build-switch_root').disabled()
-if opt and not have_dirfd and not have_ddfd
+if opt and not have_dirfd and not have_ddfd
error('neither dirfd nor ddfd are available')
endif
exe = executable(
install_dir : usrsbin_exec_dir,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += [exe, exe2, exe3, exe4]
manadocs += ['disk-utils/addpart.8.adoc',
'disk-utils/delpart.8.adoc',
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += [exe, exe2, exe3, exe4]
endif
install_dir : sbindir,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['term-utils/agetty.8.adoc']
endif
install_dir : usrbin_exec_dir,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['term-utils/setterm.1.adoc']
bashcompletions += ['setterm']
install_dir : usrbin_exec_dir,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['term-utils/mesg.1.adoc']
bashcompletions += ['mesg']
install_mode : tty_install_mode,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['term-utils/wall.1.adoc']
bashcompletions += ['wall']
install_mode : tty_install_mode,
install : opt,
build_by_default : opt)
-if opt
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['term-utils/write.1.adoc']
bashcompletions += ['write']
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_blkdev',
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_ismounted',
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_mangle',
c_args : ['-DTEST_PROGRAM_MANGLE'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_strutils',
c_args : ['-DTEST_PROGRAM_STRUTILS'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_colors',
include_directories : dir_include,
link_with : [lib_common, lib_tcolors],
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_randutils',
c_args : ['-DTEST_PROGRAM_RANDUTILS'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
if conf.get('HAVE_OPENAT').to_string() == '1' \
and conf.get('HAVE_DIRFD').to_string() == '1'
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
- exes += exe
+ if not is_disabler(exe)
+ exes += exe
+ endif
exe = executable(
'test_path',
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
- exes += exe
+ if not is_disabler(exe)
+ exes += exe
+ endif
endif
if have_pty
realtime_libs,
lib_util],
build_by_default: program_tests)
- exes += exe
+ if not is_disabler(exe)
+ exes += exe
+ endif
endif
if LINUX
c_args : ['-DTEST_PROGRAM_CPUSET'],
include_directories : dir_include,
build_by_default: program_tests)
- exes += exe
+ if not is_disabler(exe)
+ exes += exe
+ endif
endif
exe = executable(
c_args : ['-DTEST_PROGRAM_SYSFS'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_pager',
c_args : ['-DTEST_PROGRAM_PAGER'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_linux_version',
c_args : ['-DTEST_PROGRAM_LINUXVERSION'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_fileutils',
c_args : ['-DTEST_PROGRAM_FILEUTILS'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_canonicalize',
c_args : ['-DTEST_PROGRAM_CANONICALIZE'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_timeutils',
c_args : ['-DTEST_PROGRAM_TIMEUTILS'],
include_directories : dir_include,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_pwdutils',
include_directories : dir_include,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_logindefs',
include_directories : dir_include,
link_with : [lib_common, logindefs_c],
build_by_default: program_tests)
-exes += exe
-
+if not is_disabler(exe)
+ exes += exe
+endif
############################################################
include_directories : includes,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_byteswap',
'tests/helpers/test_byteswap.c',
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_md5',
md5_c,
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_sha1',
sha1_c,
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_pathnames',
'tests/helpers/test_pathnames.c',
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_strerror',
'tests/helpers/test_strerror.c',
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_sysinfo',
'tests/helpers/test_sysinfo.c',
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_sigreceive',
include_directories : includes,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_sigstate',
include_directories : includes,
link_with : lib_common,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_tiocsti',
'tests/helpers/test_tiocsti.c',
include_directories : includes,
build_by_default: program_tests)
-exes += exe
+if not is_disabler(exe)
+ exes += exe
+endif
exe = executable(
'test_uuid_namespace',