From baf252b48b41ca0fec2d7680477fccd8680eb9e4 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 3 Oct 2021 02:14:17 +0900 Subject: [PATCH] msdk: meson: Fix build on Windows subprojects\gst-plugins-bad\sys\msdk\meson.build:160:2: ERROR: Unknown variable "libva_dep". Part-of: --- subprojects/gst-plugins-bad/sys/msdk/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-bad/sys/msdk/meson.build b/subprojects/gst-plugins-bad/sys/msdk/meson.build index ac2dd811cd..c06d63e680 100644 --- a/subprojects/gst-plugins-bad/sys/msdk/meson.build +++ b/subprojects/gst-plugins-bad/sys/msdk/meson.build @@ -157,11 +157,13 @@ else endif if msdk_deps_found - driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '') - if driverdir == '' - driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri') + if host_machine.system() != 'windows' + driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '') + if driverdir == '' + driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri') + endif + cdata.set_quoted('VA_DRIVERS_PATH', '@0@'.format(driverdir)) endif - cdata.set_quoted('VA_DRIVERS_PATH', '@0@'.format(driverdir)) gstmsdktag = library('gstmsdk', msdk_sources,