diff options
Diffstat (limited to '')
-rw-r--r-- | libmount/meson.build | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/libmount/meson.build b/libmount/meson.build index 55de27b..d1262e7 100644 --- a/libmount/meson.build +++ b/libmount/meson.build @@ -83,7 +83,7 @@ lib_mount_static = static_library( lib__mount_deps = [ lib_selinux, - get_option('cryptsetup-dlopen').enabled() ? lib_dl : lib_cryptsetup, + cryptsetup_dlopen ? lib_dl : lib_cryptsetup, realtime_libs ] lib_mount = library( @@ -116,6 +116,7 @@ libmount_tests = [ 'context', 'lock', 'optstr', + 'optlist', 'tab', 'tab_diff', 'monitor', @@ -129,20 +130,22 @@ libmount_test_src_override = { 'debug': 'init', } -foreach libmount_test: libmount_tests - test_name = 'test_mount_' + libmount_test - exe = executable( - test_name, - 'src/' + libmount_test_src_override.get(libmount_test, libmount_test) + '.c', - include_directories : [dir_include, dir_libblkid], - link_with : [lib__mount, lib_common, lib_blkid_static], - dependencies : lib__mount_deps, - c_args : ['-DTEST_PROGRAM'], - ) - # the test-setup expects the helpers in the toplevel build-directory - link = meson.project_build_root() / test_name - run_command('ln', '-srf', exe.full_path(), link, - check : true) -endforeach +if program_tests + foreach libmount_test: libmount_tests + test_name = 'test_mount_' + libmount_test + exe = executable( + test_name, + 'src/' + libmount_test_src_override.get(libmount_test, libmount_test) + '.c', + include_directories : [dir_include, dir_libblkid], + link_with : [lib__mount, lib_common, lib_blkid_static], + dependencies : lib__mount_deps, + c_args : ['-DTEST_PROGRAM'], + ) + # the test-setup expects the helpers in the toplevel build-directory + link = meson.project_build_root() / test_name + run_command('ln', '-srf', exe.full_path(), link, + check : true) + endforeach +endif subdir('python') |