2016-08-12 15:26:31 +00:00
|
|
|
vorbis_sources = [
|
|
|
|
'gstvorbis.c',
|
2020-12-11 16:56:13 +00:00
|
|
|
'gstvorbiselement.c',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstvorbisdec.c',
|
|
|
|
'gstvorbisdeclib.c',
|
|
|
|
'gstvorbisenc.c',
|
|
|
|
'gstvorbisparse.c',
|
|
|
|
'gstvorbistag.c',
|
|
|
|
'gstvorbiscommon.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
vorbisidec_sources = [
|
|
|
|
'gstivorbisdec.c',
|
2020-12-11 16:56:13 +00:00
|
|
|
'gstvorbiselement.c',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstvorbisdec.c',
|
|
|
|
'gstvorbisdeclib.c',
|
|
|
|
'gstvorbiscommon.c',
|
|
|
|
]
|
|
|
|
|
2021-10-16 12:29:28 +00:00
|
|
|
vorbis_dep = dependency('vorbis', version : '>= 1.3.1', allow_fallback: true, required : get_option('vorbis'))
|
|
|
|
vorbisenc_dep = dependency('vorbisenc', version : '>= 1.3.1', allow_fallback: true, required : get_option('vorbis'))
|
|
|
|
vorbisidec_dep = dependency('vorbisidec', allow_fallback: true, required : get_option('tremor'))
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
if vorbis_dep.found()
|
|
|
|
vorbis_deps = [vorbis_dep]
|
|
|
|
if vorbisenc_dep.found()
|
|
|
|
vorbis_deps += vorbisenc_dep
|
|
|
|
endif
|
|
|
|
gstvorbis = library('gstvorbis',
|
|
|
|
vorbis_sources,
|
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
dependencies : vorbis_deps + glib_deps + [audio_dep, tag_dep, gst_dep, gst_base_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:57 +00:00
|
|
|
pkgconfig.generate(gstvorbis, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 06:17:24 +00:00
|
|
|
plugins += [gstvorbis]
|
2016-08-12 15:26:31 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
if vorbisidec_dep.found()
|
2018-09-10 16:52:16 +00:00
|
|
|
# NOTE: This plugin is only useful if your device does not support hardware
|
|
|
|
# floating point and needs integer ops for performance reasons.
|
2016-08-12 15:26:31 +00:00
|
|
|
gstivorbisdec = library('gstivorbisdec',
|
|
|
|
vorbisidec_sources,
|
2016-11-14 19:39:33 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DTREMOR'],
|
2016-08-12 15:26:31 +00:00
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
dependencies : glib_deps + [vorbisidec_dep, audio_dep, tag_dep, gst_dep, gst_base_dep],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-04-24 18:05:57 +00:00
|
|
|
pkgconfig.generate(gstivorbisdec, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 06:17:24 +00:00
|
|
|
plugins += [gstivorbisdec]
|
2016-08-12 15:26:31 +00:00
|
|
|
endif
|