2019-01-18 04:02:25 +11:00
|
|
|
tray_files = have_tray ? [
|
2018-12-07 23:33:45 +11:00
|
|
|
'tray/host.c',
|
2018-12-06 23:51:52 +11:00
|
|
|
'tray/icon.c',
|
2018-12-07 23:33:45 +11:00
|
|
|
'tray/item.c',
|
2018-10-28 21:25:47 +11:00
|
|
|
'tray/tray.c',
|
2018-12-06 04:28:14 +11:00
|
|
|
'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,
|
2019-01-22 05:01:09 +11:00
|
|
|
wayland_cursor
|
2018-10-28 21:25:47 +11:00
|
|
|
]
|
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
|
|
|
|
|
2018-03-29 14:04:20 +11:00
|
|
|
executable(
|
2018-03-31 12:38:28 +11:00
|
|
|
'swaybar', [
|
2018-03-29 14:04:20 +11:00
|
|
|
'bar.c',
|
|
|
|
'config.c',
|
2018-04-01 03:07:22 +10:00
|
|
|
'i3bar.c',
|
2018-10-18 06:21:27 +11:00
|
|
|
'input.c',
|
2018-03-29 14:56:02 +11:00
|
|
|
'ipc.c',
|
2018-03-29 14:04:20 +11:00
|
|
|
'main.c',
|
|
|
|
'render.c',
|
2018-03-30 06:16:12 +11:00
|
|
|
'status_line.c',
|
2018-10-28 21:25:47 +11:00
|
|
|
tray_files
|
2018-03-29 14:04:20 +11:00
|
|
|
],
|
|
|
|
include_directories: [sway_inc],
|
2018-10-28 21:25:47 +11:00
|
|
|
dependencies: swaybar_deps,
|
2018-03-29 14:04:20 +11:00
|
|
|
link_with: [lib_sway_common, lib_sway_client],
|
2018-05-06 09:20:57 +10:00
|
|
|
install: true
|
2018-03-29 14:04:20 +11:00
|
|
|
)
|