diff options
author | Jordan Williams <jordan@jwillikers.com> | 2024-04-24 15:29:08 -0500 |
---|---|---|
committer | Jordan Williams <jordan@jwillikers.com> | 2024-04-24 15:29:08 -0500 |
commit | 6549a90cb9d3f6c0a4a3fc7e87536b5e4690517a (patch) | |
tree | 0e59a9910948daa28417fd7c544639fccd5dc870 | |
parent | ca42082d60de44534836571e109e14f3a47fcb61 (diff) | |
download | util-linux-6549a90cb9d3f6c0a4a3fc7e87536b5e4690517a.tar.gz |
meson: Add build-fsfreeze option
Signed-off-by: Jordan Williams <jordan@jwillikers.com>
-rw-r--r-- | meson.build | 12 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 1a071b6883..466689fd87 100644 --- a/meson.build +++ b/meson.build @@ -1575,15 +1575,19 @@ exes += exe manadocs += ['sys-utils/ctrlaltdel.8.adoc'] bashcompletions += ['ctrlaltdel'] +opt = get_option('build-fsfreeze').require(conf.get('HAVE_LINUX_FS_H').to_string() == '1').allowed() exe = executable( 'fsfreeze', fsfreeze_sources, include_directories : includes, install_dir : sbindir, - install : true) -exes += exe -manadocs += ['sys-utils/fsfreeze.8.adoc'] -bashcompletions += ['fsfreeze'] + install : opt, + build_by_default : opt) +if opt and not is_disabler(exe) + exes += exe + manadocs += ['sys-utils/fsfreeze.8.adoc'] + bashcompletions += ['fsfreeze'] +endif exe = executable( 'blkdiscard', diff --git a/meson_options.txt b/meson_options.txt index e70b22c56c..b057d8426d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -141,6 +141,8 @@ option('build-fstrim', type : 'feature', description : 'build fstrim') option('build-dmesg', type : 'feature', description : 'build dmesg') +option('build-fsfreeze', type : 'feature', + description : 'build fsfreeze') option('build-blkzone', type : 'feature', description : 'build blkzone') option('build-blkpr', type : 'feature', |