c0dba1bdd2c4b98554511e84318e0efe38622d83
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-base / ext / theora / meson.build
1 theora_sources = [
2   'gsttheora.c',
3   'gsttheoraparse.c',
4 ]
5
6 theoradec_dep = dependency('theoradec', version : '>=1.1', required : get_option('theora'))
7 theoraenc_dep = dependency('theoraenc', version : '>=1.1', required : get_option('theora'))
8 theora_deps = []
9
10 if 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]
30 endif