aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meson.build12
-rw-r--r--meson_options.txt1
2 files changed, 13 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 1c322131..05d92a91 100644
--- a/meson.build
+++ b/meson.build
@@ -131,3 +131,15 @@ if (get_option('default_wallpaper'))
131 131
132 install_data(wallpaper_files, install_dir: wallpaper_install_dir) 132 install_data(wallpaper_files, install_dir: wallpaper_install_dir)
133endif 133endif
134
135if (get_option('zsh_completions'))
136 zsh_files = files(
137 'completions/zsh/_sway',
138 'completions/zsh/_swaygrab',
139 'completions/zsh/_swaylock',
140 'completions/zsh/_swaymsg',
141 )
142 zsh_install_dir = datadir + '/zsh/site-functions'
143
144 install_data(zsh_files, install_dir: zsh_install_dir)
145endif
diff --git a/meson_options.txt b/meson_options.txt
index 03bc1986..541ccf13 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,3 @@
1option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.') 1option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.')
2option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') 2option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
3option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')