mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
Use Meson feature options
This commit is contained in:
parent
5a0c4234b8
commit
08a5b304e4
4 changed files with 17 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
tray_files = get_option('enable-tray') ? [
|
||||
tray_files = have_tray ? [
|
||||
'tray/host.c',
|
||||
'tray/icon.c',
|
||||
'tray/item.c',
|
||||
|
|
@ -19,7 +19,7 @@ swaybar_deps = [
|
|||
wayland_cursor,
|
||||
wlroots,
|
||||
]
|
||||
if get_option('enable-tray')
|
||||
if have_tray
|
||||
if systemd.found()
|
||||
swaybar_deps += systemd
|
||||
elif elogind.found()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue