2016-08-12 15:26:31 +00:00
|
|
|
vorbis_sources = [
|
|
|
|
'gstvorbis.c',
|
|
|
|
'gstvorbisdec.c',
|
|
|
|
'gstvorbisdeclib.c',
|
|
|
|
'gstvorbisenc.c',
|
|
|
|
'gstvorbisparse.c',
|
|
|
|
'gstvorbistag.c',
|
|
|
|
'gstvorbiscommon.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
vorbisidec_sources = [
|
|
|
|
'gstivorbisdec.c',
|
|
|
|
'gstvorbisdec.c',
|
|
|
|
'gstvorbisdeclib.c',
|
|
|
|
'gstvorbiscommon.c',
|
|
|
|
]
|
|
|
|
|
2019-12-07 14:12:04 +00:00
|
|
|
vorbis_dep = dependency('vorbis', version : '>= 1.3.1', required : get_option('vorbis'))
|
|
|
|
vorbisenc_dep = dependency('vorbisenc', version : '>= 1.3.1', required : get_option('vorbis'))
|
2018-09-10 16:52:16 +00:00
|
|
|
vorbisidec_dep = dependency('vorbisidec', 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
|