2016-08-12 15:42:30 +00:00
|
|
|
speex_sources = [
|
2021-02-12 15:09:53 +00:00
|
|
|
'gstspeexelement.c',
|
2016-08-12 15:42:30 +00:00
|
|
|
'gstspeex.c',
|
|
|
|
'gstspeexdec.c',
|
|
|
|
'gstspeexenc.c',
|
|
|
|
]
|
|
|
|
|
2025-01-13 17:10:31 +00:00
|
|
|
speex_headers = [
|
|
|
|
'gstspeexenc.h',
|
|
|
|
'gstspeexdec.h',
|
|
|
|
'gstspeexelements.h',
|
|
|
|
]
|
|
|
|
|
|
|
|
doc_sources = []
|
|
|
|
foreach s: speex_sources + speex_headers
|
|
|
|
doc_sources += meson.current_source_dir() / s
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
plugin_sources += {
|
|
|
|
'speex': pathsep.join(doc_sources)
|
|
|
|
}
|
|
|
|
|
2018-07-25 02:05:28 +00:00
|
|
|
speex_dep = dependency('speex', version : '>=1.1.6', required : get_option('speex'))
|
2018-09-07 13:17:22 +00:00
|
|
|
windows_args = []
|
|
|
|
if host_system == 'windows'
|
|
|
|
windows_args = ['-DWIN32']
|
|
|
|
endif
|
2016-08-12 15:42:30 +00:00
|
|
|
|
|
|
|
if speex_dep.found()
|
|
|
|
gstspeex = library('gstspeex',
|
|
|
|
speex_sources,
|
2018-09-07 13:17:22 +00:00
|
|
|
c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'] + windows_args,
|
2016-08-12 15:42:30 +00:00
|
|
|
link_args : noseh_link_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
dependencies : [gstbase_dep, gsttag_dep, gstaudio_dep, speex_dep, libm],
|
|
|
|
install : true,
|
|
|
|
install_dir : plugins_install_dir,
|
|
|
|
)
|
2018-10-22 09:39:55 +00:00
|
|
|
plugins += [gstspeex]
|
2016-08-12 15:42:30 +00:00
|
|
|
endif
|