2016-08-12 15:42:30 +00:00
|
|
|
speex_sources = [
|
|
|
|
'gstspeex.c',
|
|
|
|
'gstspeexdec.c',
|
|
|
|
'gstspeexenc.c',
|
|
|
|
]
|
|
|
|
|
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-04-24 18:06:10 +00:00
|
|
|
pkgconfig.generate(gstspeex, install_dir : plugins_pkgconfig_install_dir)
|
2018-10-22 09:39:55 +00:00
|
|
|
plugins += [gstspeex]
|
2016-08-12 15:42:30 +00:00
|
|
|
endif
|