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>
This commit is contained in:
parent
a97a8fcc1a
commit
e3361c1614
@ -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")
|
||||
|
@ -884,13 +884,6 @@ def get_feature_mapping():
|
||||
"msvc_mp": None,
|
||||
"optimize_debug": None,
|
||||
"optimize_size": None,
|
||||
# special case to enable implicit feature on WIN32, until ANGLE is ported
|
||||
"opengl-desktop": {"autoDetect": ""},
|
||||
# special case to disable implicit feature on WIN32, until ANGLE is ported
|
||||
"opengl-dynamic": {"autoDetect": "OFF"},
|
||||
"opengles2": { # special case to disable implicit feature on WIN32, until ANGLE is ported
|
||||
"condition": "NOT WIN32 AND ( NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND )"
|
||||
},
|
||||
"simulator_and_device": {"condition": "UIKIT AND NOT QT_UIKIT_SDK"},
|
||||
"pkg-config": {"condition": "PKG_CONFIG_FOUND"},
|
||||
"posix-libiconv": {
|
||||
|
@ -431,7 +431,7 @@ _library_map = [
|
||||
LibraryMapping("mysql", "MySQL", "MySQL::MySQL"),
|
||||
LibraryMapping("odbc", "ODBC", "ODBC::ODBC"),
|
||||
LibraryMapping("opengl_es2", "GLESv2", "GLESv2::GLESv2"),
|
||||
LibraryMapping("opengl", "OpenGL", "OpenGL::GL", resultVariable="OpenGL_OpenGL"),
|
||||
LibraryMapping("opengl", "OpenGL", "OpenGL::GL", resultVariable="OpenGL"),
|
||||
LibraryMapping(
|
||||
"openssl_headers",
|
||||
"WrapOpenSSLHeaders",
|
||||
|
Loading…
x
Reference in New Issue
Block a user