mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-04 07:24:46 +00:00
va: Remove libgudev crumbs in library.
In commit e699aaeb
we moved linking of libgudev to the plugin rather
the library, because it's only used in the plugin. But the dependency
check is still done in library.
This patch removes the dependency check in library, and updates the
dependency check in plugin.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1702>
This commit is contained in:
parent
8e1de3f84c
commit
18cf6933b7
2 changed files with 2 additions and 12 deletions
|
@ -23,7 +23,6 @@ libva_req = ['>= 1.6']
|
|||
|
||||
libva_dep = dependency('libva', version: libva_req, required: va_option)
|
||||
libva_drm_dep = dependency('libva-drm', version: libva_req, required: va_option)
|
||||
libgudev_dep = dependency('gudev-1.0', required: va_option)
|
||||
libdrm_dep = dependency('libdrm', required: false, fallback: ['libdrm', 'ext_libdrm'])
|
||||
|
||||
if not (libva_dep.found() and libva_drm_dep.found())
|
||||
|
|
|
@ -23,26 +23,17 @@ va_sources = [
|
|||
'vasurfaceimage.c',
|
||||
]
|
||||
|
||||
va_option = get_option('va')
|
||||
if va_option.disabled() or host_system != 'linux'
|
||||
if not gstva_dep.found()
|
||||
subdir_done()
|
||||
endif
|
||||
|
||||
libgudev_dep = dependency('gudev-1.0', required: false)
|
||||
|
||||
if not gstva_dep.found() or not libgudev_dep.found()
|
||||
if va_option.enabled()
|
||||
error('The va plugin was enabled explicity, but required dependencies were not found.')
|
||||
endif
|
||||
subdir_done()
|
||||
endif
|
||||
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
||||
|
||||
if libva_dep.version().version_compare('>= 1.8')
|
||||
va_sources += 'gstvaav1dec.c'
|
||||
endif
|
||||
|
||||
cdata.set10('HAVE_GUDEV', libgudev_dep.found())
|
||||
|
||||
driverdir = libva_dep.get_variable('driverdir', default_value: '')
|
||||
if driverdir == ''
|
||||
driverdir = join_paths(get_option('prefix'), get_option('libdir'), 'dri')
|
||||
|
|
Loading…
Reference in a new issue