gstreamer/subprojects/gst-plugins-bad/sys/va/meson.build
He Junyan d5c535744b va: Move the vautils into the gst va lib.
The context query and handle are common logic for all va related
elements. So we move it from va plugins to the common gst va lib.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1256>
2022-02-07 10:12:36 +00:00

60 lines
1.5 KiB
Meson

va_sources = [
'plugin.c',
'gstvaallocator.c',
'gstvabasedec.c',
'gstvabasetransform.c',
'gstvacaps.c',
'gstvadecoder.c',
'gstvadeinterlace.c',
'gstvadevice.c',
'gstvadisplay_priv.c',
'gstvafilter.c',
'gstvah264dec.c',
'gstvah265dec.c',
'gstvapool.c',
'gstvaprofile.c',
'gstvasurfacecopy.c',
'gstvavideoformat.c',
'gstvavp8dec.c',
'gstvavp9dec.c',
'gstvampeg2dec.c',
'gstvavpp.c',
'vasurfaceimage.c',
]
va_option = get_option('va')
if va_option.disabled() or host_system != 'linux'
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
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')
endif
gstva_cargs = ['-DLIBVA_DRIVERS_PATH="' + driverdir + '"']
gstva = library('gstva',
va_sources,
c_args : gst_plugins_bad_args + extra_c_args + gstva_cargs + ['-std=c99'],
include_directories : [configinc],
dependencies : [gstvideo_dep, gstcodecs_dep, gstallocators_dep, gstva_dep, libgudev_dep] + extra_dep,
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstva, install_dir : plugins_pkgconfig_install_dir)
plugins += [gstva]