gs_sources = [
  'gstgscommon.cpp',
  'gstgssink.cpp',
  'gstgssrc.cpp',
  'gstgs.cpp',
]

gs_dep = dependency('storage_client', version : '>= 1.25.0', required : get_option('gs'))

if gs_dep.found()
  gstgs = library('gstgs',
    gs_sources,
    c_args : gst_plugins_bad_args,
    cpp_args : gst_plugins_bad_args,
    include_directories : [configinc, libsinc],
    dependencies : [gstbase_dep, gs_dep],
    install : true,
    install_dir : plugins_install_dir,
  )
  pkgconfig.generate(gstgs, install_dir : plugins_pkgconfig_install_dir)
  plugins += [gstgs]
endif
