From 418901e3f84366365da4d93900e3f22c2f7aeb84 Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Wed, 8 Jul 2020 18:35:33 +0200 Subject: [PATCH] Android: Don't depend on the OpenGL module It is not using this for anything in the code anyway so we can just drop it. This avoids a need to have the platform plugin depend on OpenGL if it is configured to be on. Change-Id: I87de162800be93db00c5022bef85c235b3655528 Reviewed-by: Alexandru Croitor Reviewed-by: BogDan Vatra --- src/plugins/platforms/android/.prev_CMakeLists.txt | 5 ----- src/plugins/platforms/android/CMakeLists.txt | 6 ------ src/plugins/platforms/android/android.pro | 2 -- .../platforms/android/qandroidplatformintegration.cpp | 3 --- 4 files changed, 16 deletions(-) diff --git a/src/plugins/platforms/android/.prev_CMakeLists.txt b/src/plugins/platforms/android/.prev_CMakeLists.txt index 6c73e0d40d..0a6aa6766e 100644 --- a/src/plugins/platforms/android/.prev_CMakeLists.txt +++ b/src/plugins/platforms/android/.prev_CMakeLists.txt @@ -60,11 +60,6 @@ qt_internal_add_plugin(QAndroidIntegrationPlugin ## Scopes: ##################################################################### -qt_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_opengl - PUBLIC_LIBRARIES - Qt::OpenGLPrivate -) - qt_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_android_style_assets SOURCES extract.cpp diff --git a/src/plugins/platforms/android/CMakeLists.txt b/src/plugins/platforms/android/CMakeLists.txt index 710214f6a9..2203842fe8 100644 --- a/src/plugins/platforms/android/CMakeLists.txt +++ b/src/plugins/platforms/android/CMakeLists.txt @@ -69,12 +69,6 @@ qt_internal_add_plugin(QAndroidIntegrationPlugin ## Scopes: ##################################################################### - -qt_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_opengl - PUBLIC_LIBRARIES - Qt::OpenGLPrivate -) - qt_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_android_style_assets SOURCES extract.cpp diff --git a/src/plugins/platforms/android/android.pro b/src/plugins/platforms/android/android.pro index 500c6acfd1..8f4a99e0aa 100644 --- a/src/plugins/platforms/android/android.pro +++ b/src/plugins/platforms/android/android.pro @@ -6,8 +6,6 @@ QT += \ core-private gui-private \ egl_support-private -qtConfig(opengl): QT += opengl-private - OTHER_FILES += $$PWD/android.json INCLUDEPATH += \ diff --git a/src/plugins/platforms/android/qandroidplatformintegration.cpp b/src/plugins/platforms/android/qandroidplatformintegration.cpp index f4c292fe73..3ffbd91c6c 100644 --- a/src/plugins/platforms/android/qandroidplatformintegration.cpp +++ b/src/plugins/platforms/android/qandroidplatformintegration.cpp @@ -43,9 +43,6 @@ #include #include #include -#if QT_CONFIG(opengl) -#include -#endif #include #include