meson: Make equalizer-sink modulde depend on fftw, add fftw dependency
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Thu, 20 Sep 2018 08:33:18 +0000 (15:33 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 4 Oct 2018 03:14:18 +0000 (08:44 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
src/modules/meson.build

index 7ba4c1e..4a04705 100644 (file)
@@ -227,6 +227,12 @@ endif
 cdata.set('DISABLE_ORC', 1)
 
 # Module dependencies
+
+fftw_dep = dependency('fftw3f', required : false)
+if fftw_dep.found()
+  cdata.set('HAVE_FFTW', 1)
+endif
+
 udev_dep = dependency('libudev', version : '>= 143', required : false)
 if udev_dep.found()
   cdata.set('HAVE_UDEV', 1)
index 32d2ef9..8a41ba7 100644 (file)
@@ -24,7 +24,6 @@ all_modules = [
   [ 'module-device-manager', 'module-device-manager.c' ],
   [ 'module-device-restore', 'module-device-restore.c', [], [], [dbus_dep], libprotocol_native ],
 #  [ 'module-echo-cancel', 'module-echo-cancel.c' ],
-  [ 'module-equalizer-sink', 'module-equalizer-sink.c', [], [], [dbus_dep] ],
   [ 'module-esound-compat-spawnfd', 'module-esound-compat-spawnfd.c' ],
   [ 'module-esound-compat-spawnpid', 'module-esound-compat-spawnpid.c' ],
 #  [ 'module-esound-protocol-tcp', 'module-protocol-stub.c' ],
@@ -99,6 +98,12 @@ if alsa_dep.found()
   ]
 endif
 
+if fftw_dep.found()
+  all_modules += [
+    [ 'module-equalizer-sink', 'module-equalizer-sink.c', [], [], [dbus_dep, fftw_dep] ],
+  ]
+endif
+
 if systemd_dep.found()
   all_modules += [
     [ 'module-systemd-login', 'module-systemd-login.c', [], [], [systemd_dep] ],