soup: Don't error out in static build unless option is enabled
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 2 Mar 2022 17:41:09 +0000 (23:11 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 3 Mar 2022 16:59:16 +0000 (16:59 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1805>

subprojects/gst-plugins-good/ext/soup/meson.build

index 79df6b1..bba7c94 100644 (file)
@@ -26,7 +26,9 @@ if get_option('default_library') == 'static'
   libsoup3_dep = dependency('libsoup-3.0', required : false,
                             fallback : ['libsoup3', 'libsoup_dep'])
   if not libsoup2_dep.found() and not libsoup3_dep.found()
-    error('Either libsoup2 or libsoup3 is needed')
+    if soup_opt.enabled()
+      error('Either libsoup2 or libsoup3 is needed')
+    endif
     subdir_done()
   endif
   if libsoup3_dep.found()