diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-05-29 15:01:42 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-29 23:23:02 +0200 |
commit | e3361c161449122112266f34e2afffc03b10558f (patch) | |
tree | b8d0cf6a0b6e2014496511b8682be7f7eafe700c /src/gui/configure.cmake | |
parent | a97a8fcc1a9b832fee2ed0e01258e1664a3e3e69 (diff) |
CMake: Update src\gui\configure.json and the conversion script
The ANGLE removal's manual configure.cmake changes are now replaced
by updating the conversion script's special cases instead.
Change-Id: I06317fe0202b25bd9f9524da14e1bb0ccbb30cc1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/gui/configure.cmake')
-rw-r--r-- | src/gui/configure.cmake | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index a714a3a703..e844a603ac 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -672,7 +672,7 @@ qt_feature("mtdev" PRIVATE ) qt_feature("opengles2" PUBLIC LABEL "OpenGL ES 2.0" - CONDITION NOT WIN32 AND ( NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND ) + CONDITION NOT WIN32 AND NOT 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' ) @@ -689,6 +689,13 @@ qt_feature("opengles32" PUBLIC LABEL "OpenGL ES 3.2" CONDITION QT_FEATURE_opengles31 AND TEST_opengles32 ) +qt_feature("opengl-desktop" + LABEL "Desktop OpenGL" + AUTODETECT NOT WIN32 + CONDITION ( WIN32 AND NOT WINRT AND ( MSVC OR OpenGL_FOUND ) ) OR ( NOT WATCHOS AND NOT WIN32 AND NOT WASM AND OpenGL_FOUND ) + ENABLE INPUT_opengl STREQUAL 'desktop' + DISABLE INPUT_opengl STREQUAL 'es2' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no' +) qt_feature("opengl-dynamic" LABEL "Dynamic OpenGL" CONDITION WIN32 AND NOT WINRT @@ -700,12 +707,6 @@ qt_feature("dynamicgl" PUBLIC DISABLE INPUT_opengl STREQUAL 'no' OR INPUT_opengl STREQUAL 'desktop' ) qt_feature_definition("opengl-dynamic" "QT_OPENGL_DYNAMIC") -qt_feature("opengl-desktop" - LABEL "Desktop OpenGL" - CONDITION ( WIN32 AND NOT WINRT AND NOT QT_FEATURE_opengl_dynamic AND ( MSVC OR OpenGL_OpenGL_FOUND ) ) OR ( NOT WATCHOS AND NOT WIN32 AND NOT WASM AND OpenGL_OpenGL_FOUND ) - ENABLE INPUT_opengl STREQUAL 'desktop' - DISABLE INPUT_opengl STREQUAL 'es2' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no' -) qt_feature("opengl" PUBLIC LABEL "OpenGL" CONDITION QT_FEATURE_opengl_desktop OR QT_FEATURE_opengl_dynamic OR QT_FEATURE_opengles2 @@ -725,7 +726,7 @@ qt_feature("openvg" PUBLIC ) qt_feature("egl" PUBLIC PRIVATE LABEL "EGL" - CONDITION ( QT_FEATURE_opengl OR QT_FEATURE_openvg ) AND ( EGL_FOUND ) AND ( QT_FEATURE_dlopen OR NOT UNIX OR INTEGRITY ) + CONDITION ( QT_FEATURE_opengl OR QT_FEATURE_openvg ) AND EGL_FOUND AND ( QT_FEATURE_dlopen OR NOT UNIX OR INTEGRITY ) ) qt_feature_definition("egl" "QT_NO_EGL" NEGATE VALUE "1") qt_feature("egl_x11" PRIVATE @@ -1156,18 +1157,10 @@ qt_configure_add_summary_entry( ARGS "opengl-dynamic" CONDITION WIN32 ) -qt_configure_add_summary_entry( - ARGS "opengles2" - CONDITION NOT WIN32) -qt_configure_add_summary_entry( - ARGS "opengles3" - CONDITION NOT WIN32) -qt_configure_add_summary_entry( - ARGS "opengles31" - CONDITION NOT WIN32) -qt_configure_add_summary_entry( - ARGS "opengles32" - CONDITION NOT WIN32) +qt_configure_add_summary_entry(ARGS "opengles2") +qt_configure_add_summary_entry(ARGS "opengles3") +qt_configure_add_summary_entry(ARGS "opengles31") +qt_configure_add_summary_entry(ARGS "opengles32") qt_configure_end_summary_section() # end of "OpenGL" section qt_configure_add_summary_entry(ARGS "vulkan") qt_configure_add_summary_entry(ARGS "sessionmanager") |