meson: do not invoke pkgconfig directly in gst-python

That bypass env setup by Meson and is dead code anyway because
pluginsdirs is later overriden by the proper gst_dep.get_variable()
solution.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7445>
This commit is contained in:
Xavier Claessens 2024-09-03 16:10:33 -04:00 committed by GStreamer Marge Bot
parent 0df80a1bec
commit ecb685e2ca

View file

@ -7,14 +7,6 @@ tests = [
['Test analytics', 'test_analytics.py'],
]
pluginsdirs = []
if not meson.is_subproject()
pkgconfig = find_program('pkg-config')
runcmd = run_command(pkgconfig, '--variable=pluginsdir',
'gstreamer-' + api_version, check: true)
pluginsdirs = runcmd.stdout().split()
endif
runcmd = run_command(python, '-c', '''with open("@0@/mesonconfig.py", "w") as f:
f.write("path='@1@'")'''.format(
join_paths(meson.current_build_dir()), join_paths(meson.current_build_dir(), '..')),