• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1vorbis_sources = [
2  'gstvorbis.c',
3  'gstvorbisdec.c',
4  'gstvorbisdeclib.c',
5  'gstvorbisenc.c',
6  'gstvorbisparse.c',
7  'gstvorbistag.c',
8  'gstvorbiscommon.c',
9]
10
11vorbisidec_sources = [
12  'gstivorbisdec.c',
13  'gstvorbisdec.c',
14  'gstvorbisdeclib.c',
15  'gstvorbiscommon.c',
16]
17
18vorbis_dep = dependency('vorbis', version : '>=1.0', required : get_option('vorbis'))
19vorbisenc_dep = dependency('vorbisenc', version : '>=1.0', required : get_option('vorbis'))
20vorbisidec_dep = dependency('vorbisidec', required : get_option('tremor'))
21
22if vorbis_dep.found() or vorbisidec_dep.found()
23  if cc.has_header_symbol('vorbis/codec.h', 'vorbis_synthesis_restart')
24    core_conf.set('HAVE_VORBIS_SYNTHESIS_RESTART', true)
25  endif
26endif
27
28if vorbis_dep.found()
29  vorbis_deps = [vorbis_dep]
30  if vorbisenc_dep.found()
31    vorbis_deps += vorbisenc_dep
32  endif
33  gstvorbis = library('gstvorbis',
34    vorbis_sources,
35    c_args : gst_plugins_base_args,
36    link_args : noseh_link_args,
37    include_directories: [configinc, libsinc],
38    dependencies : vorbis_deps + glib_deps + [audio_dep, tag_dep, gst_dep, gst_base_dep],
39    install : true,
40    install_dir : plugins_install_dir,
41  )
42  pkgconfig.generate(gstvorbis, install_dir : plugins_pkgconfig_install_dir)
43endif
44
45if vorbisidec_dep.found()
46  # NOTE: This plugin is only useful if your device does not support hardware
47  # floating point and needs integer ops for performance reasons.
48  gstivorbisdec = library('gstivorbisdec',
49    vorbisidec_sources,
50    c_args : gst_plugins_base_args + ['-DTREMOR'],
51    link_args : noseh_link_args,
52    include_directories: [configinc, libsinc],
53    dependencies : glib_deps + [vorbisidec_dep, audio_dep, tag_dep, gst_dep, gst_base_dep],
54    install : true,
55    install_dir : plugins_install_dir,
56  )
57  pkgconfig.generate(gstivorbisdec, install_dir : plugins_pkgconfig_install_dir)
58endif
59