fluidsynth_dep = dependency('fluidsynth', version : '>= 1.0', required : get_option('fluidsynth'))

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