2019-01-17 18:02:25 +01:00
|
|
|
tray_files = have_tray ? [
|
2018-12-07 13:33:45 +01:00
|
|
|
'tray/host.c',
|
2018-12-06 13:51:52 +01:00
|
|
|
'tray/icon.c',
|
2018-12-07 13:33:45 +01:00
|
|
|
'tray/item.c',
|
2018-10-28 11:25:47 +01:00
|
|
|
'tray/tray.c',
|
2018-12-05 18:28:14 +01:00
|
|
|
'tray/watcher.c'
|
2018-10-28 11:25:47 +01:00
|
|
|
] : []
|
|
|
|
|
|
|
|
swaybar_deps = [
|
|
|
|
cairo,
|
|
|
|
client_protos,
|
|
|
|
gdk_pixbuf,
|
|
|
|
jsonc,
|
|
|
|
math,
|
|
|
|
pango,
|
|
|
|
pangocairo,
|
|
|
|
rt,
|
|
|
|
wayland_client,
|
2019-01-21 19:01:09 +01:00
|
|
|
wayland_cursor
|
2018-10-28 11:25:47 +01:00
|
|
|
]
|
2019-01-17 18:02:25 +01:00
|
|
|
if have_tray
|
2018-10-28 11:25:47 +01:00
|
|
|
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-05-06 01:20:57 +02:00
|
|
|
install: true
|
2018-03-29 05:04:20 +02:00
|
|
|
)
|