diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-08-13 17:39:22 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-08-28 10:23:18 +0300 |
commit | 00a1e5da7e1aea373a7e6be1d51e1573ff167dd8 (patch) | |
tree | ae80056ad21418a1290b5d2214376c53f07bb0b4 /mkspecs/features/android | |
parent | 949254d5e4f9551aac5af2dbae5dc5dfcedd6235 (diff) |
Android: add option to get app arguments with AndroidManifest.xml
AndroidManifest.xml file and the Android plugin already has a way
to provide commandline-arguments to app with the tag
"android.app.arguments". This change allow to set it from qmake/cmake
and allow Qt Creator to use that.
Task-number: QTCREATORBUG-23712
Change-Id: I3e680f40fd36ba6aaac7f344fb9509d2c3360e74
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
Diffstat (limited to 'mkspecs/features/android')
-rw-r--r-- | mkspecs/features/android/android_deployment_settings.prf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mkspecs/features/android/android_deployment_settings.prf b/mkspecs/features/android/android_deployment_settings.prf index 573fa1bdfe..23caae2f4d 100644 --- a/mkspecs/features/android/android_deployment_settings.prf +++ b/mkspecs/features/android/android_deployment_settings.prf @@ -70,6 +70,9 @@ contains(TEMPLATE, ".*app"):!build_pass:!android-embedded { } unset(qml_import_paths) + !isEmpty(ANDROID_APPLICATION_ARGUMENTS): \ + FILE_CONTENT += " \"android-application-arguments\": $$emitString($$ANDROID_APPLICATION_ARGUMENTS)," + isEmpty(QML_ROOT_PATH): \ QML_ROOT_PATH = $$_PRO_FILE_PWD_ FILE_CONTENT += " \"qml-root-path\": $$emitString($$QML_ROOT_PATH)," |