Skip to content

Commit

Permalink
meson: add checking build-findfs.
Browse files Browse the repository at this point in the history
On FreeBSD run --auto-features=disabled -Dbuild-libblkid=enabled
-Dprogram-tests=false

builded sbin/findfs

Sponsored by: Future Crew, LLC
  • Loading branch information
Alexander Shursha committed Dec 29, 2024
1 parent 6839e54 commit 138a375
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3085,14 +3085,16 @@ endif

############################################################

opt = not get_option('build-findfs').disabled()
exe = executable(
'findfs',
findfs_sources,
include_directories : includes,
dependencies : [blkid_dep],
install_dir : sbindir,
install : true)
if not is_disabler(exe)
install : opt,
build_by_default : opt)
if opt and not is_disabler(exe)
exes += exe
manadocs += ['misc-utils/findfs.8.adoc']
bashcompletions += ['findfs']
Expand Down
2 changes: 2 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ option('build-pylibmount', type : 'feature',
description : 'build pylibmount')
option('build-hexdump', type : 'feature',
description : 'build hexdump')
option('build-findfs', type : 'feature',
description : 'build findfs')

# static programs

Expand Down

0 comments on commit 138a375

Please sign in to comment.