sway/swaybar/meson.build
myrslint aeeb99c5a3 Finds paths to icon files using libsfdo. Libsfdo is currently an
optional compile time dependency. This means the former code paths are
all retained and new ones are wrapped in #if HAVE_LIBSFDO. Behavior
should be identical now between the two code paths. Later commits will
add the handling of icons specified as absolute paths which both former
swaybar code and libsfdo have thus far avoided.
2025-04-29 17:37:58 +00:00

51 lines
693 B
Meson

tray_files = have_tray ? [
'tray/host.c',
'tray/icon.c',
'tray/item.c',
'tray/tray.c',
'tray/watcher.c'
] : []
swaybar_deps = [
cairo,
gdk_pixbuf,
jsonc,
math,
pango,
pangocairo,
rt,
wayland_client,
wayland_cursor
]
if have_tray
swaybar_deps += sdbus
endif
if have_libsfdo
swaybar_deps += [
sfdo_basedir,
sfdo_desktop,
sfdo_desktop_file,
sfdo_icon
]
endif
executable(
'swaybar', [
'bar.c',
'config.c',
'i3bar.c',
'image.c',
'input.c',
'ipc.c',
'main.c',
'render.c',
'status_line.c',
tray_files,
wl_protos_src,
],
include_directories: [sway_inc],
dependencies: swaybar_deps,
link_with: [lib_sway_common, lib_sway_client],
install: true
)