From e41b3034de3c7e5e19b0e6df6e1239384f06148a Mon Sep 17 00:00:00 2001 From: fwcd Date: Sat, 27 Jan 2024 16:35:14 +0100 Subject: [PATCH] [qtbase] Add support for OpenGL ES 3.0 --- ports/qtbase/portfile.cmake | 7 ++++--- ports/qtbase/vcpkg.json | 15 ++++++++++++++- versions/baseline.json | 2 +- versions/q-/qtbase.json | 5 +++++ 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/ports/qtbase/portfile.cmake b/ports/qtbase/portfile.cmake index 68a22b3138b393..dfc68ec187f26f 100644 --- a/ports/qtbase/portfile.cmake +++ b/ports/qtbase/portfile.cmake @@ -169,6 +169,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_GUI_OPTIONS "xrender" FEATURE_xrender # requires FEATURE_xcb_native_painting; otherwise disabled. "xrender" FEATURE_xcb_native_painting # experimental "gles2" FEATURE_opengles2 + "gles3" FEATURE_opengles3 #Cannot be required since Qt will look in CONFIG mode first but is controlled via CMAKE_DISABLE_FIND_PACKAGE_Vulkan below #"vulkan" CMAKE_REQUIRE_FIND_PACKAGE_WrapVulkanHeaders "egl" FEATURE_egl @@ -187,6 +188,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_GUI_OPTIONS "opengl" CMAKE_DISABLE_FIND_PACKAGE_WrapOpenGL "egl" CMAKE_DISABLE_FIND_PACKAGE_EGL "gles2" CMAKE_DISABLE_FIND_PACKAGE_GLESv2 + "gles3" CMAKE_DISABLE_FIND_PACKAGE_GLESv3 "fontconfig" CMAKE_DISABLE_FIND_PACKAGE_Fontconfig #"freetype" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemFreetype # Bug in qt cannot be deactivated "harfbuzz" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemHarfbuzz @@ -201,7 +203,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_GUI_OPTIONS # There are more X features but I am unsure how to safely disable them! Most of them seem to be found automaticall with find_package(X11) ) -if( "gles2" IN_LIST FEATURES) +if("gles2" IN_LIST FEATURES) list(APPEND FEATURE_GUI_OPTIONS -DINPUT_opengl='es2') list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengl_desktop=OFF) endif() @@ -223,8 +225,7 @@ else() list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xkbcommon=no) endif() -# Disable GLES3 -list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles3:BOOL=OFF) +# Disable OpenGL ES 3.1 and 3.2 list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles31:BOOL=OFF) list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles32:BOOL=OFF) diff --git a/ports/qtbase/vcpkg.json b/ports/qtbase/vcpkg.json index 4764ad9a17d7ca..99804c7a8295f0 100644 --- a/ports/qtbase/vcpkg.json +++ b/ports/qtbase/vcpkg.json @@ -1,7 +1,7 @@ { "name": "qtbase", "version": "6.6.1", - "port-version": 8, + "port-version": 9, "description": "Qt Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.", "homepage": "https://www.qt.io/", "license": null, @@ -211,6 +211,19 @@ } ] }, + "gles3": { + "description": "OpenGL ES 3.0", + "supports": "!windows & !osx", + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "gles2" + ] + } + ] + }, "glib": { "description": "GLib", "dependencies": [ diff --git a/versions/baseline.json b/versions/baseline.json index fbb2d57d06d7e7..3f7eb6c0b392c5 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7178,7 +7178,7 @@ }, "qtbase": { "baseline": "6.6.1", - "port-version": 8 + "port-version": 9 }, "qtcharts": { "baseline": "6.6.1", diff --git a/versions/q-/qtbase.json b/versions/q-/qtbase.json index ea676f6353350f..f3a6f6a575ff20 100644 --- a/versions/q-/qtbase.json +++ b/versions/q-/qtbase.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "99b63c90d57e03fb23c3750b28f70e810c981474", + "version": "6.6.1", + "port-version": 9 + }, { "git-tree": "5e2e2b00fd42bc15c333b7dded4e7db4109ca11f", "version": "6.6.1",