meson.build 689 Bytes
Newer Older
1 2 3 4 5 6
speex_sources = [
  'gstspeex.c',
  'gstspeexdec.c',
  'gstspeexenc.c',
]

7
speex_dep = dependency('speex', version : '>=1.1.6', required : get_option('speex'))
8 9 10 11
windows_args = []
if host_system == 'windows'
  windows_args = ['-DWIN32']
endif
12 13 14 15

if speex_dep.found()
  gstspeex = library('gstspeex',
    speex_sources,
16
    c_args : gst_plugins_good_args + ['-DGST_USE_UNSTABLE_API'] + windows_args,
17 18 19 20 21 22
    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,
  )
23
  pkgconfig.generate(gstspeex, install_dir : plugins_pkgconfig_install_dir)
24
endif