diff options
author | Lars Knoll <lars.knoll@qt.io> | 2022-05-10 08:39:42 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2022-05-11 08:23:28 +0200 |
commit | 79f4ba8a59079c040da91e42da4371cd5d742408 (patch) | |
tree | 8fb9cd169a52dc88b8e48bb24fe8fa971500c3dc /src/resonance-audio | |
parent | aab48bc0c50bdbb1bf2b100dd512241082df6f90 (diff) |
Fix compilation of resonance audio on our supported platforms
Disable neon optimizations on QNX. I can't get
those to compile on the platform. Looks like a bug
in the arm_neon.h headers on QNX.
Define M_PI and M_SQRT2 for pffft.c if they aren't defined.
Fix the arm processor detection to be aligned with what we
have in qprocessordetection.h
Change-Id: I6f6ee2190ee6dd9c3a08d86961c39b47dd38f5cd
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/resonance-audio')
-rw-r--r-- | src/resonance-audio/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resonance-audio/CMakeLists.txt b/src/resonance-audio/CMakeLists.txt index 81426e9a9..291b136df 100644 --- a/src/resonance-audio/CMakeLists.txt +++ b/src/resonance-audio/CMakeLists.txt @@ -1,3 +1,7 @@ +### SIMD headers (arm_neon.h) are broken on at least QNX/armv7 +if (QNX) + set(NO_SIMD_DEFINES PFFFT_SIMD_DISABLE DISABLE_SIMD) +endif () set(PFFFT_DIR "../3rdparty/pffft/" CACHE PATH "Path to pffft library") set(PFFFT_INCLUDE_DIR ${PFFFT_DIR}) @@ -194,6 +198,7 @@ qt_internal_add_3rdparty_library(BundledResonanceAudio INSTALL DEFINES EIGEN_MPL2_ONLY + ${NO_SIMD_DEFINES} SOURCES ${RA_SOURCES} ${PFFFT_SOURCE} |