aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2025-12-01 09:54:29 +0100
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2025-12-02 13:57:59 +0000
commit5bfd054e1c28fe6ec76351c53aaef76b7aceb6c7 (patch)
treebff6504151221538478f9d49813ddf4ed8a6eefc /sources/pyside6
parenta2177a2df584d2e7ae57d33e9c98f8f36e93925e (diff)
PySide6-Android: Add QtWebView
- QtWebView was previously missing from the Android build configuration. Pick-to: 6.8 6.10 Fixes: PYSIDE-3248 Change-Id: I11230b9bff6a45bee3af0dba498e7d76ca678e61 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/cmake/PySideHelpers.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/pyside6/cmake/PySideHelpers.cmake b/sources/pyside6/cmake/PySideHelpers.cmake
index 46a1e6d64..9891eab3f 100644
--- a/sources/pyside6/cmake/PySideHelpers.cmake
+++ b/sources/pyside6/cmake/PySideHelpers.cmake
@@ -133,8 +133,12 @@ macro(collect_optional_modules)
list(APPEND ALL_OPTIONAL_MODULES WebChannel WebEngineCore WebEngineWidgets
WebEngineQuick WebSockets HttpServer)
find_package(Qt${QT_MAJOR_VERSION}WebEngineQuick)
- # for Windows and Linux, QtWebView depends on QtWebEngine to render content
- if(Qt${QT_MAJOR_VERSION}WebEngineQuick_FOUND OR APPLE)
+ # For Windows and Linux, QtWebView depends on QtWebEngine to render content.
+ # On Android and Apple platforms, QtWebView uses the native webview backend and
+ # does not require QtWebEngine.
+ if(APPLE OR ANDROID)
+ list(APPEND ALL_OPTIONAL_MODULES WebView)
+ elseif(Qt${QT_MAJOR_VERSION}WebEngineQuick_FOUND)
list(APPEND ALL_OPTIONAL_MODULES WebView)
endif()
list(APPEND ALL_OPTIONAL_MODULES 3DCore 3DRender 3DInput 3DLogic 3DAnimation 3DExtras)