Blame ext/theora/meson.build

Packit 0652a1
theora_sources = [
Packit 0652a1
  'gsttheora.c',
Packit 0652a1
  'gsttheoraparse.c',
Packit 0652a1
]
Packit 0652a1
Packit 0652a1
theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
Packit 0652a1
theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
Packit 0652a1
core_conf.set('HAVE_THEORA', theoradec_dep.found() and theoraenc_dep.found())
Packit 0652a1
theora_deps = []
Packit 0652a1
Packit 0652a1
if theoradec_dep.found() or theoraenc_dep.found()
Packit 0652a1
  if theoradec_dep.found()
Packit 0652a1
    theora_sources += [ 'gsttheoradec.c' ]
Packit 0652a1
    theora_deps += theoradec_dep
Packit 0652a1
  endif
Packit 0652a1
  if theoraenc_dep.found()
Packit 0652a1
    theora_sources += [ 'gsttheoraenc.c' ]
Packit 0652a1
    theora_deps += theoraenc_dep
Packit 0652a1
  endif
Packit 0652a1
  gsttheora = library('gsttheora',
Packit 0652a1
    theora_sources,
Packit 0652a1
    c_args : gst_plugins_base_args,
Packit 0652a1
    link_args : noseh_link_args,
Packit 0652a1
    include_directories: [configinc, libsinc],
Packit 0652a1
    dependencies : theora_deps + glib_deps + [video_dep, tag_dep, gst_dep, gst_base_dep],
Packit 0652a1
    install : true,
Packit 0652a1
    install_dir : plugins_install_dir,
Packit 0652a1
  )
Packit 0652a1
  pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
Packit 0652a1
endif