swayfx/swaybar/meson.build

47 lines
657 B
Meson
Raw Normal View History

2019-01-18 04:02:25 +11:00
tray_files = have_tray ? [
'tray/host.c',
'tray/icon.c',
'tray/item.c',
2018-10-28 21:25:47 +11:00
'tray/tray.c',
'tray/watcher.c'
2018-10-28 21:25:47 +11:00
] : []
swaybar_deps = [
cairo,
client_protos,
gdk_pixbuf,
jsonc,
math,
pango,
pangocairo,
rt,
wayland_client,
wayland_cursor,
wlroots,
]
2019-01-18 04:02:25 +11:00
if have_tray
2018-10-28 21:25:47 +11:00
if systemd.found()
swaybar_deps += systemd
elif elogind.found()
swaybar_deps += elogind
endif
endif
executable(
2018-03-31 12:38:28 +11:00
'swaybar', [
'bar.c',
'config.c',
'i3bar.c',
'input.c',
2018-03-29 14:56:02 +11:00
'ipc.c',
'main.c',
'render.c',
'status_line.c',
2018-10-28 21:25:47 +11:00
tray_files
],
include_directories: [sway_inc],
2018-10-28 21:25:47 +11:00
dependencies: swaybar_deps,
link_with: [lib_sway_common, lib_sway_client],
install: true
)