Commit a7be8815 authored by Thibault Saunier's avatar Thibault Saunier

meson: Use get_pkgconfig_variable instead of calling pkg-config ourself

It is avalaible in meson 0.36 which is now are requirement
parent 1b3bdf3e
......@@ -126,19 +126,11 @@ test_defines = [
pluginsdirs = [ ]
# FIXME: Use if not gst_dep.is_internal() when avalaible as we only support the
# case where GStreamer is another subproject here.
if not meson.is_subproject()
pkgconfig = find_program('pkg-config')
runcmd = run_command(pkgconfig, '--variable=pluginsdir',
'gstreamer-' + api_version, 'gstreamer-plugins-base-' + api_version)
if runcmd.returncode() == 0
pluginsdirs = runcmd.stdout().split()
error('Could not determine GStreamer core plugins directory for unit tests.')
pluginsdirs = []
if gst_dep.type_name() == 'pkgconfig'
pbase = dependency('gstreamer-plugins-base-' + api_version, required : false)
pluginsdirs = [gst_dep.get_pkgconfig_variable('pluginsdir'),
# fake device drivers: we could run hardware element tests against dummy drivers
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment