summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2019-06-26 08:46:37 +0300
committerLiang Qi <liang.qi@qt.io>2019-08-28 13:55:06 +0200
commit17b503073d5aeb505c15ef94f5af10d76898b1cf (patch)
tree008f576568de8d6cf209a6973ed4a44046bcc411
parent25e60237a576f975d72605d5459b2477ee1f555b (diff)
Fix Android multi ABIs compilation
Change-Id: I983e2559d27ab5778f0af16f659786c0d78f4338 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
-rw-r--r--src/3rdparty/libwebp.pri25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/3rdparty/libwebp.pri b/src/3rdparty/libwebp.pri
index 3e839a2..6f49549 100644
--- a/src/3rdparty/libwebp.pri
+++ b/src/3rdparty/libwebp.pri
@@ -123,18 +123,21 @@ integrity {
QMAKE_CFLAGS += -c99
}
-equals(QT_ARCH, arm)|equals(QT_ARCH, arm64) {
- SOURCES_FOR_NEON += \
- $$PWD/libwebp/src/dsp/alpha_processing_neon.c \
- $$PWD/libwebp/src/dsp/dec_neon.c \
- $$PWD/libwebp/src/dsp/enc_neon.c \
- $$PWD/libwebp/src/dsp/filters_neon.c \
- $$PWD/libwebp/src/dsp/lossless_enc_neon.c \
- $$PWD/libwebp/src/dsp/lossless_neon.c \
- $$PWD/libwebp/src/dsp/rescaler_neon.c \
- $$PWD/libwebp/src/dsp/upsampling_neon.c \
- $$PWD/libwebp/src/dsp/yuv_neon.c
+SOURCES_FOR_NEON += \
+ $$PWD/libwebp/src/dsp/alpha_processing_neon.c \
+ $$PWD/libwebp/src/dsp/dec_neon.c \
+ $$PWD/libwebp/src/dsp/enc_neon.c \
+ $$PWD/libwebp/src/dsp/filters_neon.c \
+ $$PWD/libwebp/src/dsp/lossless_enc_neon.c \
+ $$PWD/libwebp/src/dsp/lossless_neon.c \
+ $$PWD/libwebp/src/dsp/rescaler_neon.c \
+ $$PWD/libwebp/src/dsp/upsampling_neon.c \
+ $$PWD/libwebp/src/dsp/yuv_neon.c
+
+android {
+ arm64-v8a|equals(QT_ARCH, arm64): SOURCES += $$SOURCES_FOR_NEON
+} else: equals(QT_ARCH, arm)|equals(QT_ARCH, arm64) {
contains(QT_CPU_FEATURES.$$QT_ARCH, neon) {
# Default compiler settings include this feature, so just add to SOURCES
SOURCES += $$SOURCES_FOR_NEON