2016-08-12 15:26:31 +00:00
|
|
|
opus_sources = [
|
|
|
|
'gstopus.c',
|
2020-12-11 15:59:50 +00:00
|
|
|
'gstopuselement.c',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstopuscommon.c',
|
|
|
|
'gstopusdec.c',
|
|
|
|
'gstopusenc.c',
|
|
|
|
'gstopusheader.c',
|
|
|
|
]
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
opus_headers = [
|
|
|
|
'gstopusenc.h',
|
|
|
|
'gstopusheader.h',
|
|
|
|
'gstopuselements.h',
|
|
|
|
'gstopuscommon.h',
|
|
|
|
'gstopusdec.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: opus_sources + opus_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'opus': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2020-11-07 17:30:19 +00:00
|
|
|
opus_dep = dependency('opus', version: '>= 0.9.4', required: get_option('opus'),
|
2020-11-26 16:37:01 +00:00
|
|
|
fallback: ['opus', 'opus_dep'], default_options: ['docs=disabled'])
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
if opus_dep.found()
|
|
|
|
gstopus = library('gstopus',
|
|
|
|
opus_sources,
|
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [pbutils_dep, tag_dep, audio_dep, gst_dep, gst_base_dep, opus_dep, libm],
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 06:17:24 +00:00
|
|
|
plugins += [gstopus]
|
2016-08-12 15:26:31 +00:00
|
|
|
endif
|