Use Meson feature options

This commit is contained in:
emersion 2019-01-17 18:02:25 +01:00
parent 5a0c4234b8
commit 08a5b304e4
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 17 additions and 11 deletions

View file

@ -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()