• 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'))
8theora_deps = []
9
10if theoradec_dep.found() or theoraenc_dep.found()
11  if theoradec_dep.found()
12    theora_sources += [ 'gsttheoradec.c' ]
13    theora_deps += theoradec_dep
14  endif
15  if theoraenc_dep.found()
16    theora_sources += [ 'gsttheoraenc.c' ]
17    theora_deps += theoraenc_dep
18  endif
19  gsttheora = library('gsttheora',
20    theora_sources,
21    c_args : gst_plugins_base_args,
22    link_args : noseh_link_args,
23    include_directories: [configinc, libsinc],
24    dependencies : theora_deps + glib_deps + [video_dep, tag_dep, gst_dep, gst_base_dep],
25    install : true,
26    install_dir : plugins_install_dir,
27  )
28  pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
29  plugins += [gsttheora]
30endif
31