bs2b_sources = [ 'gstbs2b.c', ]

bs2b_dep = dependency('libbs2b', version : '>=3.1.0', required : get_option('bs2b'))

if bs2b_dep.found()
  gstbs2b = library('gstbs2b',
    bs2b_sources,
    c_args : gst_plugins_bad_args,
    link_args : noseh_link_args,
    include_directories : [configinc, libsinc],
    dependencies : [gstaudio_dep, gstbase_dep, bs2b_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstbs2b, install_dir : plugins_pkgconfig_install_dir)
  plugins += [gstbs2b]
endif
