Skip to content

Commit

Permalink
swaybar: fix build dependencies with tray
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyfan committed Dec 6, 2018
1 parent d9f6e05 commit 8aa035a
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions swaybar/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ tray_files = get_option('enable-tray') ? [
'tray/watcher_kde.c'
] : []

swaybar_deps = [
cairo,
client_protos,
gdk_pixbuf,
jsonc,
math,
pango,
pangocairo,
rt,
wayland_client,
wayland_cursor,
wlroots,
]
if get_option('enable-tray')
if systemd.found()
swaybar_deps += systemd
elif elogind.found()
swaybar_deps += elogind
endif
endif

executable(
'swaybar', [
'bar.c',
Expand All @@ -19,19 +40,7 @@ executable(
tray_files
],
include_directories: [sway_inc],
dependencies: [
cairo,
client_protos,
gdk_pixbuf,
jsonc,
math,
pango,
pangocairo,
rt,
wayland_client,
wayland_cursor,
wlroots,
],
dependencies: swaybar_deps,
link_with: [lib_sway_common, lib_sway_client],
install_rpath : rpathdir,
install: true
Expand Down

0 comments on commit 8aa035a

Please sign in to comment.