2018-12-16 20:27:56 +00:00
|
|
|
sndfile_dep = dependency('sndfile', version: '>= 1.0.16', required: get_option('sndfile'))
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
sndfile_sources = [
|
|
|
|
'gstsf.c',
|
|
|
|
'gstsfelement.c',
|
|
|
|
'gstsfdec.c',
|
|
|
|
# 'gstsfsink.c',
|
|
|
|
# 'gstsfsrc.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
sndfile_headers = [
|
|
|
|
'gstsfelements.h',
|
|
|
|
'gstsfdec.h',
|
|
|
|
'gstsfsrc.h',
|
|
|
|
'gstsfsink.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: sndfile_sources + sndfile_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'sndfile': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2018-12-16 20:27:56 +00:00
|
|
|
if sndfile_dep.found()
|
|
|
|
gstsndfile = library('gstsndfile',
|
2025-01-13 17:10:31 +00:00
|
|
|
sndfile_sources,
|
2018-12-16 20:27:56 +00:00
|
|
|
c_args: gst_plugins_bad_args,
|
2018-12-17 10:30:27 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
2018-12-16 20:27:56 +00:00
|
|
|
dependencies: [gstaudio_dep, gst_dep, sndfile_dep],
|
|
|
|
install: true,
|
|
|
|
install_dir: plugins_install_dir,
|
|
|
|
)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstsndfile]
|
2018-12-16 20:27:56 +00:00
|
|
|
endif
|