From: Víctor Manuel Jáquez Leal Date: Thu, 30 Sep 2021 15:38:33 +0000 (+0200) Subject: va: meson: Update and enhance meson syntax usage. X-Git-Tag: 1.19.3~388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e08ede8f62326d6804b85da4ccbe4b8ede28ff1;p=platform%2Fupstream%2Fgstreamer.git va: meson: Update and enhance meson syntax usage. This patch contains two updates: 1. Instead of checking for dependency already checked just to verify a version, we use the dependency version API. 2. Update the deprecated function get_pkgconfig_variable. Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/va/meson.build b/subprojects/gst-plugins-bad/sys/va/meson.build index e7b39b5368..6106b8a77f 100644 --- a/subprojects/gst-plugins-bad/sys/va/meson.build +++ b/subprojects/gst-plugins-bad/sys/va/meson.build @@ -33,16 +33,13 @@ if not gstva_dep.found() subdir_done() endif -# Keep av1 support optional as long as required libva version in gst-libs/va is < 1.8 -libva_av1_req = ['>= 1.8'] -libva_av1_dep = dependency('libva', version: libva_av1_req, required: false) -if libva_av1_dep.found() +if libva_dep.version().version_compare('>= 1.8') va_sources += 'gstvaav1dec.c' endif cdata.set10('HAVE_LIBDRM', libdrm_dep.found()) -driverdir = libva_dep.get_pkgconfig_variable('driverdir') +driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '') if driverdir == '' driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri') endif