1kmssink_sources = [
2  'gstkmsallocator.c',
3  'gstkmsbufferpool.c',
4  'gstkmssink.c',
5  'gstkmsutils.c',
6]
7
8libdrm_dep = dependency('libdrm', version : '>= 2.4.55', required : get_option('kms'))
9if libdrm_dep.found()
10  gstkmssink = library('gstkms',
11    kmssink_sources,
12    c_args : gst_plugins_bad_args,
13    include_directories : [configinc],
14    dependencies : [gstbase_dep, gstvideo_dep, gstallocators_dep, libdrm_dep],
15    install : true,
16    install_dir : plugins_install_dir,
17  )
18  pkgconfig.generate(gstkmssink, install_dir : plugins_pkgconfig_install_dir)
19endif
20