Skip to content

Commit

Permalink
add meson options to release fish completion
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoVeille committed Mar 26, 2024
1 parent 92dfe3a commit c8f7e25
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions completions/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
if get_option('fish-completions')
install_data(
files(
'fish/rmw.fish',
),
install_dir: get_option('datadir') + '/fish/vendor_completions.d')
endif

1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ main_bin = executable(
)

subdir ('man')
subdir('completions')

if get_option('build_tests')
subdir ('test')
Expand Down
3 changes: 3 additions & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ option('docdir', type : 'string', value : 'share/doc/rmw',

option('without-curses', type : 'boolean', value : 'false',
description : 'build without curses/menu support')

option('fish-completions', type: 'boolean', value: true,
description: 'Install fish shell completions')

0 comments on commit c8f7e25

Please sign in to comment.