summaryrefslogtreecommitdiff
path: root/mkspecs/features
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2017-05-04 10:15:23 +0200
committerJani Heikkinen <jani.heikkinen@qt.io>2017-05-11 08:35:54 +0000
commit3f1548ae82d4321b6fdbbf127dafbdf385374be0 (patch)
tree192268eed3cb0fea123e93c721d9319f372991fb /mkspecs/features
parent67f466505e1aed6b7f87e766141d081146b4159c (diff)
downloadqtbase-3f1548ae82d4321b6fdbbf127dafbdf385374be0.tar.gz
Restore behavior of using libEGL and libGLESv2 as default for angle
As Qt applications using OpenGL are linked against these libs, merging them into QtANGLE by default (780105f9062dec350bbe2a6800c40db3e6382578) was a binary incompatible change. This change restores the default behavior to the one before given change. If the user wants the libraries to be merged, he can pass combined-angle-lib to configure. Task-number: QTBUG-60373 Change-Id: Iedbd3f2ce9284fdde924cfae8d915d6d5fef00db Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'mkspecs/features')
-rw-r--r--mkspecs/features/win32/opengl.prf10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/win32/opengl.prf b/mkspecs/features/win32/opengl.prf
index ebc29d0923..c6fba7770f 100644
--- a/mkspecs/features/win32/opengl.prf
+++ b/mkspecs/features/win32/opengl.prf
@@ -1,4 +1,14 @@
+QT_FOR_CONFIG += gui
+
qtConfig(opengles2) {
+ # Depending on the configuration we use libQtANGLE or libEGL and libGLESv2
+ qtConfig(combined-angle-lib) {
+ QMAKE_LIBS_OPENGL_ES2 = -l$${LIBQTANGLE_NAME} $$QMAKE_LIBS_OPENGL_ES2
+ QMAKE_LIBS_OPENGL_ES2_DEBUG = -l$${LIBQTANGLE_NAME}d $$QMAKE_LIBS_OPENGL_ES2_DEBUG
+ } else {
+ QMAKE_LIBS_OPENGL_ES2 = -l$${LIBEGL_NAME} -l$${LIBGLESV2_NAME} $$QMAKE_LIBS_OPENGL_ES2
+ QMAKE_LIBS_OPENGL_ES2_DEBUG = -l$${LIBEGL_NAME}d -l$${LIBGLESV2_NAME}d $$QMAKE_LIBS_OPENGL_ES2_DEBUG
+ }
# For Desktop, use the ANGLE library location passed on from configure.
INCLUDEPATH += $$QMAKE_INCDIR_OPENGL_ES2
CONFIG(debug, debug|release) {