msdk: meson: Fix build on Windows

subprojects\gst-plugins-bad\sys\msdk\meson.build:160:2: ERROR: Unknown variable "libva_dep".

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1022>
This commit is contained in:
Seungha Yang 2021-10-03 02:14:17 +09:00 committed by GStreamer Marge Bot
parent 6a756b9f46
commit baf252b48b

View file

@ -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,