de265_sources = [
  'gstlibde265.c',
  'libde265-dec.c',
]

de265_dep = dependency('libde265', version : '>= 0.9', required : get_option('libde265'))

if de265_dep.found()
  gstde265 = library('gstde265',
    de265_sources,
    c_args : gst_plugins_bad_args,
    include_directories : [configinc],
    dependencies : [gstvideo_dep, de265_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstde265, install_dir : plugins_pkgconfig_install_dir)
  plugins += [gstde265]
endif
