diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-06-24 17:34:07 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-07-25 17:48:53 +0200 |
commit | 1f0823cc271856b8d21be3c3bcbde57393e731f0 (patch) | |
tree | f7effe5244117f5cb06848d0c153d113c1807e57 /src/gui/image | |
parent | 86ac3a98b50a29882e896a0703ec9201e71fe989 (diff) |
Rewrite simd.prf to share more code
This was a long-time coming.
One innovation from this commit is that it will add the source to
SOURCES if the compiler is already generating code for that specific
target. That is currently always the case for Neon, and the MIPS DSPs
since that is the only condition in which configure will enable those
targets. And because of qt_module.prf, it's also always the case for
SSE2 (but not for SSE3 or higher).
So simplify the .pri files by removing always-true conditions.
Change-Id: Ib24af74717b652c9a6be246e3c17a839470f37da
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/gui/image')
-rw-r--r-- | src/gui/image/image.pri | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/image/image.pri b/src/gui/image/image.pri index ba4328c16e..7022a6efd0 100644 --- a/src/gui/image/image.pri +++ b/src/gui/image/image.pri @@ -78,10 +78,8 @@ contains(QT_CONFIG, jpeg):include($$PWD/qjpeghandler.pri) contains(QT_CONFIG, gif):include($$PWD/qgifhandler.pri) # SIMD -contains(QT_CPU_FEATURES.$$QT_ARCH, sse2) { - SOURCES += image/qimage_sse2.cpp - SSSE3_SOURCES += image/qimage_ssse3.cpp -} +SSE2_SOURCES += image/qimage_sse2.cpp +SSSE3_SOURCES += image/qimage_ssse3.cpp NEON_SOURCES += image/qimage_neon.cpp MIPS_DSPR2_SOURCES += image/qimage_mips_dspr2.cpp MIPS_DSPR2_ASM += image/qimage_mips_dspr2_asm.S |