diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 19:33:30 +0000 |
commit | c61e14d3a8412cd50d98aab604e607692c844c8a (patch) | |
tree | 4925aca0e6b64c8664ea2f3fdfa99a52dc93d5da /libmount/meson.build | |
parent | Adding upstream version 2.39.3. (diff) | |
download | util-linux-c61e14d3a8412cd50d98aab604e607692c844c8a.tar.xz util-linux-c61e14d3a8412cd50d98aab604e607692c844c8a.zip |
Adding upstream version 2.40.upstream/2.40
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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') |