summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@gnome.org>2023-03-31 12:13:50 +0200
committerVictor Toso <victortoso@gnome.org>2023-03-31 12:13:52 +0200
commitfb3c0347def241e6b49ba04a7fb245608c77c2ca (patch)
tree004715ff0b0affa91c263160c217df6669aef7cf
parent6542b587e566b403c0eaa71c59929b2821b58ba4 (diff)
downloadgrilo-plugins-fb3c0347def241e6b49ba04a7fb245608c77c2ca.tar.gz
build: dmap: fix usage of unset variable
If we are on libsoup2 enviroment but with dmap enable, meson will error out due a check in libdmapsharing4_dep: src/dmap/meson.build:39:7: ERROR: Unknown variable "libdmapsharing4_dep". This patch fixes this error. libdmapsharing4_dep is set only with libsoup3 but it only checks for libdmapsharing-4.0, so we can do that always and fix the error.
-rw-r--r--meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index fb683ec..f27eadc 100644
--- a/meson.build
+++ b/meson.build
@@ -83,10 +83,11 @@ else
libsoup24_dep = dependency('unresolvable-dep', required: false)
libgdata_dep = dependency('unresolvable-dep', required: false)
endif
+
+libdmapsharing4_dep = dependency('libdmapsharing-4.0', version: '>= 3.9.11', required: false)
if soup_api_version == '2.4'
libdmapsharing_dep = dependency('libdmapsharing-3.0', version: '>= 2.9.12', required: false)
else
- libdmapsharing4_dep = dependency('libdmapsharing-4.0', version: '>= 3.9.11', required: false)
libdmapsharing_dep = libdmapsharing4_dep
endif