diff options
author | Soheil Armin <[email protected]> | 2024-07-22 15:02:00 +0300 |
---|---|---|
committer | Soheil Armin <[email protected]> | 2024-08-20 03:05:07 +0300 |
commit | be2c03064cdb7bef977d05371e535bedcadb3a0f (patch) | |
tree | 9eb5b9314a4dc7b584a9bc8e568c5f74a8cbee39 /src/tools/androiddeployqt/main.cpp | |
parent | 86e34dfcddf6ffd24780a50b3b4c66b9f6726b70 (diff) |
Android: Rename opt-in CMake flag that generates QML to Java code
The Java QtQmlComponent has been renamed to QtQuickViewContent
as a part of API reviews.
As a result, we also change the opt-in flag
From QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS
To QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS
that adds an entry to the android-deployment-settings.json.
The flags later will be used by androiddeployqt to enable the
generation of QtQuickViewContent extensions.
Pick-to: 6.8
Task-number: QTBUG-126976
Task-number: QTBUG-127091
Change-Id: Ie08a9430a5e5a16809f78389144a4a6dfd87ce18
Reviewed-by: Tinja Paavoseppä <[email protected]>
Reviewed-by: Nicholas Bennett <[email protected]>
Diffstat (limited to 'src/tools/androiddeployqt/main.cpp')
-rw-r--r-- | src/tools/androiddeployqt/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tools/androiddeployqt/main.cpp b/src/tools/androiddeployqt/main.cpp index ec19cbb9317..9ff9ab277f0 100644 --- a/src/tools/androiddeployqt/main.cpp +++ b/src/tools/androiddeployqt/main.cpp @@ -1302,13 +1302,13 @@ bool readInputFile(Options *options) } { - const QJsonValue genJavaQmlComponents = jsonObject.value("generate-java-qml-components"_L1); + const QJsonValue genJavaQmlComponents = jsonObject.value("generate-java-qtquickview-contents"_L1); if (!genJavaQmlComponents.isUndefined() && genJavaQmlComponents.isBool()) { options->generateJavaQmlComponents = genJavaQmlComponents.toBool(false); if (options->generateJavaQmlComponents && !options->buildAar) { fprintf(stderr, - "Warning: Skipping the generation of Java components from QML as it can be " - "enabled only for an AAR target.\n"); + "Warning: Skipping the generation of Java QtQuickView contents from QML " + "as it can be enabled only for an AAR target.\n"); options->generateJavaQmlComponents = false; } } @@ -1321,7 +1321,7 @@ bool readInputFile(Options *options) } else if (options->generateJavaQmlComponents) { fprintf(stderr, "No qmldom binary defined in json file which is required when " - "building with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag.\n"); + "building with QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS flag.\n"); return false; } } @@ -3708,7 +3708,7 @@ int generateJavaQmlComponents(const Options &options) if (moduleInfo.moduleName == libName) { fprintf(stderr, "A QML module name (%s) cannot be the same as the target name when building " - "with QT_ANDROID_GENERATE_JAVA_QML_COMPONENTS flag.\n", + "with QT_ANDROID_GENERATE_JAVA_QTQUICKVIEW_CONTENTS flag.\n", qPrintable(moduleInfo.moduleName)); return false; } |