meson: avoid unkown variables in the msdk tests

This commit is contained in:
Jordan Petridis 2018-10-29 21:51:14 +02:00
parent 84d3f58c4a
commit 1e887f9b12
No known key found for this signature in database
GPG key ID: 902CC06D159744F5

View file

@ -30,6 +30,9 @@ else
msdk_sources += ['msdk_libva.c', 'gstmsdkallocator_libva.c']
endif
have_msdk = false
msdk_dep = []
msdk_option = get_option('msdk')
if msdk_option.disabled()
subdir_done()
@ -41,9 +44,6 @@ if msdk_root == '' and msdk_option.enabled()
error('msdk plugin enabled but Intel Media SDK not found: neither INTELMEDIASDKROOT nor MFX_HOME were set')
endif
have_msdk = false
msdk_dep = []
if msdk_root != ''
msdk_libdir = [msdk_root + '/lib/lin_x64', msdk_root + '/lib/x64', msdk_root + '/lib64']
msdk_incdir = include_directories(msdk_root + '/include')