[grilo-plugins/wip/hadess/dmap-soup3] build: Don't build dmap plugin when soup 3 is used




commit 1c7d927afff18575d81c328cbe941a04620e42bb
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 9 10:26:42 2022 +0200

    build: Don't build dmap plugin when soup 3 is used
    
    As libdmapsharing doesn't support libsoup3 yet.
    
    Closes: #85

 meson.build | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index dce2069a..7c313a24 100644
--- a/meson.build
+++ b/meson.build
@@ -67,12 +67,6 @@ gstreamer_dep = dependency('gstreamer-1.0', required: false)
 gthread_dep = dependency('gthread-2.0', required: false)
 json_glib_dep = dependency('json-glib-1.0', required: false)
 libarchive_dep = dependency('libarchive', required: false)
-libdmapsharing4_dep = dependency('libdmapsharing-4.0', version: '>= 3.9.9', required: false)
-if libdmapsharing4_dep.found()
-    libdmapsharing_dep = libdmapsharing4_dep
-else
-    libdmapsharing_dep = dependency('libdmapsharing-3.0', version: '>= 2.9.12', required: false)
-endif
 libmediaart_dep = dependency('libmediaart-2.0', required: false)
 if soup_api_version == '2.4'
   libsoup_dep = dependency('libsoup-2.4', required: false)
@@ -85,6 +79,15 @@ else
   libsoup24_dep = dependency('unresolvable-dep', required: false)
   libgdata_dep = dependency('unresolvable-dep', required: false)
 endif
+if soup_api_version == '2.4'
+  libdmapsharing4_dep = dependency('libdmapsharing-4.0', version: '>= 3.9.9', required: false)
+  if libdmapsharing4_dep.found()
+    libdmapsharing_dep = libdmapsharing4_dep
+  else
+    libdmapsharing_dep = dependency('libdmapsharing-3.0', version: '>= 2.9.12', required: false)
+  endif
+endif
+
 libxml_dep = dependency('libxml-2.0', required: false)
 oauth_dep = dependency('oauth', required: false)
 sqlite3_dep = dependency('sqlite3', required: false)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]