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>
This commit is contained in:
parent
9281abb1bc
commit
8158a8767c
@ -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'
|
||||
)
|
||||
|
@ -726,6 +726,9 @@ def parseFeature(ctx, feature, data, cm_fh):
|
||||
'msvc_mp': None,
|
||||
'optimize_debug': None,
|
||||
'optimize_size': None,
|
||||
'opengles2': { # special case to disable implicit feature on WIN32, until ANGLE is ported
|
||||
'condition': 'NOT WIN32 AND ( NOT APPLE_WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )'
|
||||
},
|
||||
'pkg-config': None,
|
||||
'posix_fallocate': None, # Only needed for sqlite, which we do not want to build
|
||||
'posix-libiconv': {
|
||||
|
Loading…
Reference in New Issue
Block a user