2016-08-12 15:26:31 +00:00
|
|
|
fft_sources = [
|
|
|
|
'gstfft.c',
|
|
|
|
'gstffts16.c',
|
|
|
|
'gstffts32.c',
|
|
|
|
'gstfftf32.c',
|
|
|
|
'gstfftf64.c',
|
|
|
|
'kiss_fft_s16.c',
|
|
|
|
'kiss_fft_s32.c',
|
|
|
|
'kiss_fft_f32.c',
|
|
|
|
'kiss_fft_f64.c',
|
|
|
|
'kiss_fftr_s16.c',
|
|
|
|
'kiss_fftr_s32.c',
|
|
|
|
'kiss_fftr_f32.c',
|
|
|
|
'kiss_fftr_f64.c'
|
|
|
|
]
|
|
|
|
|
|
|
|
fft_headers = [
|
|
|
|
'fft.h',
|
2018-03-13 10:43:20 +00:00
|
|
|
'fft-prelude.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstfftf32.h',
|
|
|
|
'gstfftf64.h',
|
|
|
|
'gstfft.h',
|
|
|
|
'gstffts16.h',
|
|
|
|
'gstffts32.h',
|
|
|
|
]
|
|
|
|
install_headers(fft_headers, subdir : 'gstreamer-1.0/gst/fft/')
|
|
|
|
|
|
|
|
gstfft = library('gstfft-@0@'.format(api_version),
|
|
|
|
fft_sources,
|
2021-10-01 14:30:27 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_FFT', '-DG_LOG_DOMAIN="GStreamer-FFT"'],
|
2016-08-12 15:26:31 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:06:30 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gst_dep, libm],
|
|
|
|
)
|
2020-06-27 04:39:00 +00:00
|
|
|
pkg_name = 'gstreamer-fft-1.0'
|
2018-04-08 00:52:12 +00:00
|
|
|
pkgconfig.generate(gstfft,
|
|
|
|
libraries : [gst_dep],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-08 00:52:12 +00:00
|
|
|
description : 'FFT implementation',
|
|
|
|
)
|
2022-09-01 15:51:48 +00:00
|
|
|
gst_libraries += [[pkg_name, {'lib': gstfft}]]
|
2018-04-08 00:52:12 +00:00
|
|
|
|
2016-08-12 15:26:31 +00:00
|
|
|
fft_dep = declare_dependency(link_with: gstfft,
|
|
|
|
include_directories : [libsinc],
|
2017-07-19 22:05:18 +00:00
|
|
|
dependencies : [gst_dep])
|
2018-04-08 00:52:12 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, fft_dep)
|