timecode_sources = [
  'plugin.c',
  'gsttimecodestamper.c',
  'gstavwait.c'
]

tc_deps = [gstbase_dep, gstaudio_dep, gstvideo_dep]

ltc_dep = dependency('ltc', version : '>=1.1.4', required : false)
if ltc_dep.found()
  cdata.set('HAVE_LTC', 1)
  tc_deps += [ltc_dep]
endif

gsttimecode = library('gsttimecode',
  timecode_sources,
  c_args : gst_plugins_bad_args,
  include_directories : [configinc],
  dependencies : tc_deps,
  install : true,
  install_dir : plugins_install_dir,
)
pkgconfig.generate(gsttimecode, install_dir : plugins_pkgconfig_install_dir)
plugins += [gsttimecode]
