diff options
author | Victor Toso <victortoso@gnome.org> | 2023-03-31 12:13:50 +0200 |
---|---|---|
committer | Victor Toso <victortoso@gnome.org> | 2023-03-31 12:13:52 +0200 |
commit | fb3c0347def241e6b49ba04a7fb245608c77c2ca (patch) | |
tree | 004715ff0b0affa91c263160c217df6669aef7cf | |
parent | 6542b587e566b403c0eaa71c59929b2821b58ba4 (diff) | |
download | grilo-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.build | 3 |
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 |