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 endif
if msdk_deps_found if msdk_deps_found
if host_machine.system() != 'windows'
driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '') driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '')
if driverdir == '' if driverdir == ''
driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri') driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri')
endif endif
cdata.set_quoted('VA_DRIVERS_PATH', '@0@'.format(driverdir)) cdata.set_quoted('VA_DRIVERS_PATH', '@0@'.format(driverdir))
endif
gstmsdktag = library('gstmsdk', gstmsdktag = library('gstmsdk',
msdk_sources, msdk_sources,