• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1theora_sources = [
2  'gsttheora.c',
3  'gsttheoraparse.c',
4]
5
6theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
7theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
8core_conf.set('HAVE_THEORA', theoradec_dep.found() and theoraenc_dep.found())
9theora_deps = []
10
11if theoradec_dep.found() or theoraenc_dep.found()
12  if theoradec_dep.found()
13    theora_sources += [ 'gsttheoradec.c' ]
14    theora_deps += theoradec_dep
15  endif
16  if theoraenc_dep.found()
17    theora_sources += [ 'gsttheoraenc.c' ]
18    theora_deps += theoraenc_dep
19  endif
20  gsttheora = library('gsttheora',
21    theora_sources,
22    c_args : gst_plugins_base_args,
23    link_args : noseh_link_args,
24    include_directories: [configinc, libsinc],
25    dependencies : theora_deps + glib_deps + [video_dep, tag_dep, gst_dep, gst_base_dep],
26    install : true,
27    install_dir : plugins_install_dir,
28  )
29  pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
30endif
31