chromaprint_dep = dependency('libchromaprint', required : get_option('chromaprint'))

if chromaprint_dep.found()
  gstchromaprint = library('gstchromaprint',
    'gstchromaprint.c',
    c_args : gst_plugins_bad_args,
    include_directories : [configinc],
    dependencies : [gstaudio_dep, chromaprint_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstchromaprint, install_dir : plugins_pkgconfig_install_dir)
  plugins += [gstchromaprint]
endif
