2018-10-28 11:25:47 +01:00
|
|
|
tray_files = get_option('enable-tray') ? [
|
|
|
|
'tray/tray.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
|
|
|
|
|
2018-03-29 05:04:20 +02:00
|
|
|
executable(
|
2018-03-31 03:38:28 +02:00
|
|
|
'swaybar', [
|
2018-03-29 05:04:20 +02:00
|
|
|
'bar.c',
|
|
|
|
'config.c',
|
2018-03-31 19:07:22 +02:00
|
|
|
'i3bar.c',
|
2018-10-17 21:21:27 +02:00
|
|
|
'input.c',
|
2018-03-29 05:56:02 +02:00
|
|
|
'ipc.c',
|
2018-03-29 05:04:20 +02:00
|
|
|
'main.c',
|
|
|
|
'render.c',
|
2018-03-29 21:16:12 +02:00
|
|
|
'status_line.c',
|
2018-10-28 11:25:47 +01:00
|
|
|
tray_files
|
2018-03-29 05:04:20 +02:00
|
|
|
],
|
|
|
|
include_directories: [sway_inc],
|
2018-10-28 11:25:47 +01:00
|
|
|
dependencies: swaybar_deps,
|
2018-03-29 05:04:20 +02:00
|
|
|
link_with: [lib_sway_common, lib_sway_client],
|
2018-09-30 14:11:24 +02:00
|
|
|
install_rpath : rpathdir,
|
2018-05-06 01:20:57 +02:00
|
|
|
install: true
|
2018-03-29 05:04:20 +02:00
|
|
|
)
|