aboutsummaryrefslogtreecommitdiff
path: root/swaybg/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'swaybg/meson.build')
-rw-r--r--swaybg/meson.build18
1 files changed, 16 insertions, 2 deletions
diff --git a/swaybg/meson.build b/swaybg/meson.build
index 47315023..7f5d6bd1 100644
--- a/swaybg/meson.build
+++ b/swaybg/meson.build
@@ -1,8 +1,22 @@
+deps = [
+ cairo,
+ jsonc,
+ math,
+ pango,
+ pangocairo,
+ sway_protos,
+ wayland_client,
+]
+
+if gdk_pixbuf.found()
+ deps += [gdk_pixbuf]
+endif
+
executable(
'swaybg',
'main.c',
include_directories: [sway_inc],
- dependencies: [wayland_client, sway_protos, jsonc, wlroots],
- link_with: [lib_sway_common],
+ dependencies: deps,
+ link_with: [lib_sway_common, lib_sway_client],
install: true
)