meson: Allow using GStreamer plugins from custom_subprojects

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1490>
This commit is contained in:
Thibault Saunier 2021-12-12 13:20:55 +00:00
parent b0370cdf00
commit ccf64e369e

View 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')