Add meson options to enable/disable swaybar and swaynag
This commit is contained in:
parent
96102184ab
commit
2024725cc0
24
meson.build
24
meson.build
|
@ -140,9 +140,15 @@ if scdoc.found()
|
||||||
'sway/sway-output.5.scd',
|
'sway/sway-output.5.scd',
|
||||||
'swaybar/swaybar-protocol.7.scd',
|
'swaybar/swaybar-protocol.7.scd',
|
||||||
'swaymsg/swaymsg.1.scd',
|
'swaymsg/swaymsg.1.scd',
|
||||||
|
]
|
||||||
|
|
||||||
|
if get_option('swaynag')
|
||||||
|
man_files += [
|
||||||
'swaynag/swaynag.1.scd',
|
'swaynag/swaynag.1.scd',
|
||||||
'swaynag/swaynag.5.scd',
|
'swaynag/swaynag.5.scd',
|
||||||
]
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
foreach filename : man_files
|
foreach filename : man_files
|
||||||
topic = filename.split('.')[-3].split('/')[-1]
|
topic = filename.split('.')[-3].split('/')[-1]
|
||||||
section = filename.split('.')[-2]
|
section = filename.split('.')[-2]
|
||||||
|
@ -224,9 +230,15 @@ subdir('common')
|
||||||
subdir('sway')
|
subdir('sway')
|
||||||
subdir('swaymsg')
|
subdir('swaymsg')
|
||||||
|
|
||||||
|
if get_option('swaybar') or get_option('swaynag')
|
||||||
subdir('client')
|
subdir('client')
|
||||||
|
endif
|
||||||
|
if get_option('swaybar')
|
||||||
subdir('swaybar')
|
subdir('swaybar')
|
||||||
|
endif
|
||||||
|
if get_option('swaynag')
|
||||||
subdir('swaynag')
|
subdir('swaynag')
|
||||||
|
endif
|
||||||
|
|
||||||
config = configuration_data()
|
config = configuration_data()
|
||||||
config.set('datadir', join_paths(prefix, datadir))
|
config.set('datadir', join_paths(prefix, datadir))
|
||||||
|
@ -274,9 +286,13 @@ 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/swaybar',
|
|
||||||
'completions/bash/swaymsg',
|
'completions/bash/swaymsg',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if get_option('swaybar')
|
||||||
|
bash_files += files('completions/bash/swaybar')
|
||||||
|
endif
|
||||||
|
|
||||||
if bash_comp.found()
|
if bash_comp.found()
|
||||||
bash_install_dir = bash_comp.get_variable(
|
bash_install_dir = bash_comp.get_variable(
|
||||||
pkgconfig: 'completionsdir',
|
pkgconfig: 'completionsdir',
|
||||||
|
@ -293,8 +309,12 @@ if get_option('fish-completions')
|
||||||
fish_files = files(
|
fish_files = files(
|
||||||
'completions/fish/sway.fish',
|
'completions/fish/sway.fish',
|
||||||
'completions/fish/swaymsg.fish',
|
'completions/fish/swaymsg.fish',
|
||||||
'completions/fish/swaynag.fish',
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if get_option('swaynag')
|
||||||
|
fish_files += files('completions/fish/swaynag.fish')
|
||||||
|
endif
|
||||||
|
|
||||||
if fish_comp.found()
|
if fish_comp.found()
|
||||||
fish_install_dir = fish_comp.get_variable(
|
fish_install_dir = fish_comp.get_variable(
|
||||||
pkgconfig: 'completionsdir',
|
pkgconfig: 'completionsdir',
|
||||||
|
|
|
@ -2,6 +2,8 @@ option('default-wallpaper', type: 'boolean', value: true, description: 'Install
|
||||||
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('swaybar', type: 'boolean', value: true, description: 'Enable support for swaybar')
|
||||||
|
option('swaynag', type: 'boolean', value: true, description: 'Enable support for swaynag')
|
||||||
option('xwayland', type: 'feature', value: 'auto', description: 'Enable support for X11 applications')
|
option('xwayland', type: 'feature', value: 'auto', description: 'Enable support for X11 applications')
|
||||||
option('tray', type: 'feature', value: 'auto', description: 'Enable support for swaybar tray')
|
option('tray', type: 'feature', value: 'auto', description: 'Enable support for swaybar tray')
|
||||||
option('gdk-pixbuf', type: 'feature', value: 'auto', description: 'Enable support for more image formats in swaybg')
|
option('gdk-pixbuf', type: 'feature', value: 'auto', description: 'Enable support for more image formats in swaybg')
|
||||||
|
|
Loading…
Reference in a new issue