[grilo-plugins/ebassi/subproject-variables: 2/2] build: Don't build dmap plugin when soup 3 is used
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/ebassi/subproject-variables: 2/2] build: Don't build dmap plugin when soup 3 is used
- Date: Tue, 27 Sep 2022 13:44:39 +0000 (UTC)
commit fef8823db9f7558b7e5524595b345031eb22b2a1
Author: Emmanuele Bassi <ebassi gnome org>
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.
Original patch by: Bastien Nocera <hadess hadess net>
See: #85
meson.build | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/meson.build b/meson.build
index 0408142d..53f0a3f5 100644
--- a/meson.build
+++ b/meson.build
@@ -71,12 +71,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)
@@ -89,6 +83,17 @@ 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
+else
+ libdmapsharing_dep = disabler()
+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]