6 theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
7 theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
10 if theoradec_dep.found() or theoraenc_dep.found()
11 if theoradec_dep.found()
12 theora_sources += [ 'gsttheoradec.c' ]
13 theora_deps += theoradec_dep
15 if theoraenc_dep.found()
16 theora_sources += [ 'gsttheoraenc.c' ]
17 theora_deps += theoraenc_dep
19 gsttheora = library('gsttheora',
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],
26 install_dir : plugins_install_dir,
28 pkgconfig.generate(gsttheora, install_dir : plugins_pkgconfig_install_dir)
29 plugins += [gsttheora]