summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-03-21 19:17:41 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-03-21 21:51:22 +0000
commit8158a8767c4c0ece37c55c2cc6777267221693ee (patch)
treec9c5aeb1a929706e2acb77650a57d7b7faf42080 /src
parent9281abb1bc10db9703d0147fed6d567f6a60c513 (diff)
Temporarily disable the opengles2 feature on WIN32
The feature used to be implicitly enabled because qt source ships with ANGLE sources, and thus ANGLE could always be built. Yet because the CMake port of ANGLE is not done yet, and because the feature is implicitly enabled, the build failed when trying to find GLES headers. To provide a nicer out-of-the-box configuring of the Windows build, disable the opengles2 feature on Windows, to default to a desktop GL build. It can be re-enabled once (if) ANGLE porting is done. After this change, you shouldn't need to pass any additional custom FEATURE_foo options to cmake to build qtbase on Windows. Change-Id: I94c96d8ef70cf671d2ce0198311f70b55fa642b1 Reviewed-by: Liang Qi <liang.qi@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/gui/configure.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake
index 157898953e..1d57ce7328 100644
--- a/src/gui/configure.cmake
+++ b/src/gui/configure.cmake
@@ -535,7 +535,7 @@ qt_feature("mtdev" PRIVATE
)
qt_feature("opengles2" PUBLIC
LABEL "OpenGL ES 2.0"
- CONDITION WIN32 OR ( NOT APPLE_WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )
+ CONDITION NOT WIN32 AND ( NOT APPLE_WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )
ENABLE INPUT_opengl STREQUAL 'es2'
DISABLE INPUT_opengl STREQUAL 'desktop' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no'
)