From 00a1e5da7e1aea373a7e6be1d51e1573ff167dd8 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Thu, 13 Aug 2020 17:39:22 +0300 Subject: 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 --- mkspecs/features/android/android_deployment_settings.prf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mkspecs/features') 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)," -- cgit v1.2.3