From b6fb53a47ab20586efb7761513ab7af683495b67 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Sat, 18 Dec 2021 21:01:53 -0300 Subject: CMake: re-enable SIMD on Android Except for MIPS, which is disabled in Qt 5 too. It's not my place to question why. This partially reverses commit b6e75ff3eaccc4f0322c9735533a1f3435597eba. Change-Id: Ib42b3adc93bf4d43bd55fffd16c1feffb9c5890c Reviewed-by: Alexandru Croitor Reviewed-by: Assam Boudjelthia --- src/gui/CMakeLists.txt | 68 +++++++++++++++++++++++++------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'src/gui/CMakeLists.txt') diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index ec72a598f1..19b6332820 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -564,38 +564,45 @@ qt_internal_extend_target(Gui CONDITION ((QT_FEATURE_png) AND (WIN32 AND MINGW)) -fno-reorder-blocks-and-partition ) -if(NOT ANDROID) - if(TEST_architecture_arch STREQUAL x86_64) - qt_internal_extend_target(Gui - SOURCES - painting/qdrawhelper_sse2.cpp - ) - else() - qt_internal_add_simd_part(Gui SIMD sse2 - SOURCES - painting/qdrawhelper_sse2.cpp - ) - endif() - - qt_internal_add_simd_part(Gui SIMD ssse3 - SOURCES - image/qimage_ssse3.cpp - painting/qdrawhelper_ssse3.cpp +if(TEST_architecture_arch STREQUAL x86_64) + qt_internal_extend_target(Gui + SOURCES + painting/qdrawhelper_sse2.cpp ) - - qt_internal_add_simd_part(Gui SIMD sse4_1 +else() + qt_internal_add_simd_part(Gui SIMD sse2 SOURCES - painting/qdrawhelper_sse4.cpp - painting/qimagescale_sse4.cpp + painting/qdrawhelper_sse2.cpp ) +endif() - qt_internal_add_simd_part(Gui SIMD neon - SOURCES - image/qimage_neon.cpp - painting/qdrawhelper_neon.cpp painting/qdrawhelper_neon_p.h - painting/qimagescale_neon.cpp - ) +qt_internal_add_simd_part(Gui SIMD ssse3 + SOURCES + image/qimage_ssse3.cpp + painting/qdrawhelper_ssse3.cpp +) + +qt_internal_add_simd_part(Gui SIMD sse4_1 + SOURCES + painting/qdrawhelper_sse4.cpp + painting/qimagescale_sse4.cpp +) +qt_internal_add_simd_part(Gui SIMD arch_haswell + SOURCES + painting/qdrawhelper_avx2.cpp + EXCLUDE_OSX_ARCHITECTURES + arm64 +) + +qt_internal_add_simd_part(Gui SIMD neon + SOURCES + image/qimage_neon.cpp + painting/qdrawhelper_neon.cpp painting/qdrawhelper_neon_p.h + painting/qimagescale_neon.cpp +) + +if(NOT ANDROID) qt_internal_add_simd_part(Gui SIMD mips_dsp SOURCES painting/qdrawhelper_mips_dsp.cpp painting/qdrawhelper_mips_dsp_p.h @@ -609,13 +616,6 @@ if(NOT ANDROID) image/qimage_mips_dspr2_asm.S painting/qdrawhelper_mips_dspr2_asm.S ) - - qt_internal_add_simd_part(Gui SIMD arch_haswell - SOURCES - painting/qdrawhelper_avx2.cpp - EXCLUDE_OSX_ARCHITECTURES - arm64 - ) endif() qt_internal_extend_target(Gui CONDITION ANDROID -- cgit v1.2.3