meson: Allow using GStreamer plugins from custom_subprojects
authorThibault Saunier <tsaunier@igalia.com>
Sun, 12 Dec 2021 13:20:55 +0000 (13:20 +0000)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 3 Jan 2022 19:27:04 +0000 (16:27 -0300)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1490>

meson.build

index 5234aaf..d1af0bc 100644 (file)
@@ -114,6 +114,14 @@ endif
 
 orc_subproject = subproject('orc', required: get_option('orc'))
 
+foreach custom_subproj: get_option('custom_subprojects').split(',')
+    if custom_subproj != ''
+        message ('Adding custom subproject ' + custom_subproj)
+        subprojects += [[custom_subproj, {'match_gst_version': false}]]
+    endif
+endforeach
+
+
 subprojects_names = []
 plugins_doc_caches = []
 orc_update_targets = []
@@ -369,14 +377,6 @@ if get_option('default_library') == 'static'
   meson.override_dependency('gstreamer-full-1.0', gst_full_dep)
 endif
 
-foreach custom_subproj: get_option('custom_subprojects').split(',')
-    if custom_subproj != ''
-        message ('Adding custom subproject ' + custom_subproj)
-        subproject(custom_subproj)
-        subprojects_names += [custom_subproj]
-    endif
-endforeach
-
 message('Building subprojects: ' + ', '.join(subprojects_names))
 
 setenv = find_program('gst-env.py')