diff options
| author | Simon Ser <contact@emersion.fr> | 2022-12-05 10:57:52 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-12-05 11:02:41 +0100 |
| commit | dcba5bcb9f20c7d5d75f700693e031737567289a (patch) | |
| tree | f791e670766fb111cf9deb986bb1bd2258fcf6a6 /meson.build | |
| parent | d9e71c87c7af8687750901d71409140f1bd181bd (diff) | |
build: move completions to separate file
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/meson.build b/meson.build index 13548b7..260e55f 100644 --- a/meson.build +++ b/meson.build @@ -42,8 +42,6 @@ wayland_scanner = dependency('wayland-scanner', version: '>=1.15.0', native: tru xkbcommon = dependency('xkbcommon') cairo = dependency('cairo') gdk_pixbuf = dependency('gdk-pixbuf-2.0', required: get_option('gdk-pixbuf')) -bash_comp = dependency('bash-completion', required: false) -fish_comp = dependency('fish', required: false) libpam = cc.find_library('pam', required: get_option('pam')) crypt = cc.find_library('crypt', required: not libpam.found()) math = cc.find_library('m') @@ -180,39 +178,4 @@ if scdoc.found() endforeach endif -datadir = get_option('datadir') - -if get_option('zsh-completions') - zsh_files = files( - 'completions/zsh/_swaylock', - ) - zsh_install_dir = datadir + '/zsh/site-functions' - - install_data(zsh_files, install_dir: zsh_install_dir) -endif - -if get_option('bash-completions') - bash_files = files( - 'completions/bash/swaylock', - ) - if bash_comp.found() - bash_install_dir = bash_comp.get_variable('completionsdir') - else - bash_install_dir = datadir + '/bash-completion/completions' - endif - - install_data(bash_files, install_dir: bash_install_dir) -endif - -if get_option('fish-completions') - fish_files = files( - 'completions/fish/swaylock.fish', - ) - if fish_comp.found() - fish_install_dir = fish_comp.get_variable('completionsdir') - else - fish_install_dir = datadir + '/fish/vendor_completions.d' - endif - - install_data(fish_files, install_dir: fish_install_dir) -endif +subdir('completions') |
