12 vorbisidec_sources = [
20 vorbis_dep = dependency('vorbis', version : '>= 1.3.1', allow_fallback: true, required : get_option('vorbis'))
21 vorbisenc_dep = dependency('vorbisenc', version : '>= 1.3.1', allow_fallback: true, required : get_option('vorbis'))
22 vorbisidec_dep = dependency('vorbisidec', allow_fallback: true, required : get_option('tremor'))
25 vorbis_deps = [vorbis_dep]
26 if vorbisenc_dep.found()
27 vorbis_deps += vorbisenc_dep
29 gstvorbis = library('gstvorbis',
31 c_args : gst_plugins_base_args,
32 link_args : noseh_link_args,
33 include_directories: [configinc, libsinc],
34 dependencies : vorbis_deps + glib_deps + [audio_dep, tag_dep, gst_dep, gst_base_dep],
36 install_dir : plugins_install_dir,
38 pkgconfig.generate(gstvorbis, install_dir : plugins_pkgconfig_install_dir)
39 plugins += [gstvorbis]
42 if vorbisidec_dep.found()
43 # NOTE: This plugin is only useful if your device does not support hardware
44 # floating point and needs integer ops for performance reasons.
45 gstivorbisdec = library('gstivorbisdec',
47 c_args : gst_plugins_base_args + ['-DTREMOR'],
48 link_args : noseh_link_args,
49 include_directories: [configinc, libsinc],
50 dependencies : glib_deps + [vorbisidec_dep, audio_dep, tag_dep, gst_dep, gst_base_dep],
52 install_dir : plugins_install_dir,
54 pkgconfig.generate(gstivorbisdec, install_dir : plugins_pkgconfig_install_dir)
55 plugins += [gstivorbisdec]