1speex_sources = [
2  'gstspeex.c',
3  'gstspeexdec.c',
4  'gstspeexenc.c',
5]
6
7speex_dep = dependency('speex', version : '>=1.1.6', required : get_option('speex'))
8windows_args = []
9if host_system == 'windows'
10  windows_args = ['-DWIN32']
11endif
12
13if speex_dep.found()
14  gstspeex = library('gstspeex',
15    speex_sources,
16    c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'] + windows_args,
17    link_args : noseh_link_args,
18    include_directories : [configinc],
19    dependencies : [gstbase_dep, gsttag_dep, gstaudio_dep, speex_dep, libm],
20    install : true,
21    install_dir : plugins_install_dir,
22  )
23  pkgconfig.generate(gstspeex, install_dir : plugins_pkgconfig_install_dir)
24endif
25