mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 13:25:56 +00:00
meson: va, msdk: simplify dep.get_variable() use
With recent Meson versions we can just write dep.get_variable('foo') instead of dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir'). Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1183>
This commit is contained in:
parent
081cada7cb
commit
e0f336c1b4
2 changed files with 2 additions and 2 deletions
|
@ -158,7 +158,7 @@ endif
|
||||||
|
|
||||||
if msdk_deps_found
|
if msdk_deps_found
|
||||||
if host_machine.system() != 'windows'
|
if host_machine.system() != 'windows'
|
||||||
driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '')
|
driverdir = libva_dep.get_variable('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
|
||||||
|
|
|
@ -43,7 +43,7 @@ endif
|
||||||
|
|
||||||
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
||||||
|
|
||||||
driverdir = libva_dep.get_variable(pkgconfig: 'driverdir', internal: 'driverdir', default_value: '')
|
driverdir = libva_dep.get_variable('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
|
||||||
|
|
Loading…
Reference in a new issue