2019-01-17 17:02:25 +00:00
|
|
|
tray_files = have_tray ? [
|
2018-12-07 12:33:45 +00:00
|
|
|
'tray/host.c',
|
2018-12-06 12:51:52 +00:00
|
|
|
'tray/icon.c',
|
2018-12-07 12:33:45 +00:00
|
|
|
'tray/item.c',
|
2018-10-28 10:25:47 +00:00
|
|
|
'tray/tray.c',
|
2021-05-30 18:45:01 +00:00
|
|
|
'tray/watcher.c',
|
|
|
|
'tray/dbusmenu.c'
|
2018-10-28 10:25:47 +00:00
|
|
|
] : []
|
|
|
|
|
|
|
|
swaybar_deps = [
|
|
|
|
cairo,
|
|
|
|
gdk_pixbuf,
|
|
|
|
jsonc,
|
|
|
|
math,
|
|
|
|
pango,
|
|
|
|
pangocairo,
|
|
|
|
rt,
|
|
|
|
wayland_client,
|
2019-01-21 18:01:09 +00:00
|
|
|
wayland_cursor
|
2018-10-28 10:25:47 +00:00
|
|
|
]
|
2019-01-17 17:02:25 +00:00
|
|
|
if have_tray
|
2020-12-02 22:46:49 +00:00
|
|
|
swaybar_deps += sdbus
|
2018-10-28 10:25:47 +00:00
|
|
|
endif
|
|
|
|
|
2018-03-29 03:04:20 +00:00
|
|
|
executable(
|
2018-03-31 01:38:28 +00:00
|
|
|
'swaybar', [
|
2018-03-29 03:04:20 +00:00
|
|
|
'bar.c',
|
|
|
|
'config.c',
|
2018-03-31 17:07:22 +00:00
|
|
|
'i3bar.c',
|
2023-11-23 13:40:41 +00:00
|
|
|
'image.c',
|
2018-10-17 19:21:27 +00:00
|
|
|
'input.c',
|
2018-03-29 03:56:02 +00:00
|
|
|
'ipc.c',
|
2018-03-29 03:04:20 +00:00
|
|
|
'main.c',
|
|
|
|
'render.c',
|
2018-03-29 19:16:12 +00:00
|
|
|
'status_line.c',
|
2022-11-25 09:51:20 +00:00
|
|
|
tray_files,
|
|
|
|
wl_protos_src,
|
2018-03-29 03:04:20 +00:00
|
|
|
],
|
|
|
|
include_directories: [sway_inc],
|
2018-10-28 10:25:47 +00:00
|
|
|
dependencies: swaybar_deps,
|
2018-03-29 03:04:20 +00:00
|
|
|
link_with: [lib_sway_common, lib_sway_client],
|
2018-05-05 23:20:57 +00:00
|
|
|
install: true
|
2018-03-29 03:04:20 +00:00
|
|
|
)
|