Skip to content

Commit

Permalink
Android: use Qt major version for detecting OpenGL and QtQuick libraries
Browse files Browse the repository at this point in the history
Change-Id: Ia7651ad09d7aab70cf32fcd56f9fb75202ace768
Pick-to: 6.3 6.2
Reviewed-by: Assam Boudjelthia <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
  • Loading branch information
Sona Kurazyan committed Apr 22, 2022
1 parent 7febf0b commit 77b9ddf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tools/androiddeployqt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1474,8 +1474,10 @@ bool updateLibsXml(Options *options)

plugin = qtDependency.relativePath;
}
if (qtDependency.relativePath.contains("libQt5OpenGL"_L1)
|| qtDependency.relativePath.contains("libQt5Quick"_L1)) {
if (qtDependency.relativePath.contains(
QString::asprintf("libQt%dOpenGL", QT_VERSION_MAJOR))
|| qtDependency.relativePath.contains(
QString::asprintf("libQt%dQuick", QT_VERSION_MAJOR))) {
options->usesOpenGL |= true;
break;
}
Expand Down

0 comments on commit 77b9ddf

Please sign in to comment.