summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2016-05-04 15:22:01 +0200
committerLiang Qi <liang.qi@qt.io>2016-05-06 08:41:20 +0000
commite6cb3b8c766ea393bb63165e539268986de85687 (patch)
treeac5dda02c30c39dbcd05c7d2a8618ccf044f04e1 /tools
parent52d30e2850769d589772576e4714a14241c7da6e (diff)
Android: Force use of system zlib on Windows host
While we on Linux will do a compile test to check for a system zlib, the test on a Windows host was less accurate, causing us to compile in the zlib from 3rdparty/ here. This caused compilation errors after updating the freetype font engine to support color fonts, since the zlib in 3rdparty/ was included implicitly in the freetype library, and since it depends on Qt headers, the compilation failed in this context. The hotfix is to force system zlib on Android for Windows hosts, since we know it is available in the NDK. Doing a proper build check is not worth it right now, due to future plans for changing configure. We will still break for an explicit -qt-zlib compilation, so the plan is to fix this in an upcoming commit by separating libpng into a library. Change-Id: I7854c3c762fa37f7ee4b5f1112dbae8b5973ea86 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index 805db76196..9a4602715b 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -1674,6 +1674,7 @@ void Configure::applySpecSpecifics()
dictionary["ANDROID_STYLE_ASSETS"] = "yes";
dictionary[ "STYLE_ANDROID" ] = "yes";
dictionary[ "POLL" ] = "poll";
+ dictionary[ "ZLIB" ] = "system";
}
}