Use dashes in meson option names

master
Ryan Dwyer 6 years ago
parent 159edc6d13
commit 7795f733d8

@ -106,7 +106,7 @@ endif
add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c') add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c')
version = get_option('sway_version') version = get_option('sway-version')
if version != '' if version != ''
version = '"@0@"'.format(version) version = '"@0@"'.format(version)
else else
@ -168,7 +168,7 @@ install_data(
install_dir: datadir + '/wayland-sessions' install_dir: datadir + '/wayland-sessions'
) )
if (get_option('default_wallpaper')) if (get_option('default-wallpaper'))
wallpaper_files = files( wallpaper_files = files(
'assets/Sway_Wallpaper_Blue_768x1024.png', 'assets/Sway_Wallpaper_Blue_768x1024.png',
'assets/Sway_Wallpaper_Blue_768x1024_Portrait.png', 'assets/Sway_Wallpaper_Blue_768x1024_Portrait.png',
@ -184,7 +184,7 @@ if (get_option('default_wallpaper'))
install_data(wallpaper_files, install_dir: wallpaper_install_dir) install_data(wallpaper_files, install_dir: wallpaper_install_dir)
endif endif
if (get_option('zsh_completions')) if (get_option('zsh-completions'))
zsh_files = files( zsh_files = files(
'completions/zsh/_sway', 'completions/zsh/_sway',
'completions/zsh/_swaylock', 'completions/zsh/_swaylock',
@ -195,7 +195,7 @@ if (get_option('zsh_completions'))
install_data(zsh_files, install_dir: zsh_install_dir) install_data(zsh_files, install_dir: zsh_install_dir)
endif endif
if (get_option('bash_completions')) if (get_option('bash-completions'))
bash_files = files( bash_files = files(
'completions/bash/sway', 'completions/bash/sway',
'completions/bash/swayidle', 'completions/bash/swayidle',
@ -207,7 +207,7 @@ if (get_option('bash_completions'))
install_data(bash_files, install_dir: bash_install_dir) install_data(bash_files, install_dir: bash_install_dir)
endif endif
if (get_option('fish_completions')) if (get_option('fish-completions'))
fish_files = files( fish_files = files(
'completions/fish/sway.fish', 'completions/fish/sway.fish',
'completions/fish/swaylock.fish', 'completions/fish/swaylock.fish',

@ -1,6 +1,6 @@
option('sway_version', type : 'string', description: 'The version string reported in `sway --version`.') option('sway-version', type : 'string', description: 'The version string reported in `sway --version`.')
option('default_wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.') option('default-wallpaper', type: 'boolean', value: true, description: 'Install the default wallpaper.')
option('zsh_completions', type: 'boolean', value: true, description: 'Install zsh shell completions.') option('zsh-completions', type: 'boolean', value: true, description: 'Install zsh shell completions.')
option('bash_completions', type: 'boolean', value: true, description: 'Install bash shell completions.') option('bash-completions', type: 'boolean', value: true, description: 'Install bash shell completions.')
option('fish_completions', type: 'boolean', value: true, description: 'Install fish shell completions.') option('fish-completions', type: 'boolean', value: true, description: 'Install fish shell completions.')
option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications') option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support for X11 applications')

Loading…
Cancel
Save