From f641dfe4513e1a95e3ef777e428bac0adea62c86 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 25 Mar 2022 13:51:46 +0100 Subject: [PATCH] Fix the support of genex's when generating Android deployment settings Add GENEX_EVAL when proxying target properties that needs to be written to Android deployment settings. If properties that are proxied in the _qt_internal_android_format_deployment_paths function contain genex's they are not evaluated when file(GENERATE is called. So the resulting Android deployment settings contain unevaluated generator expressions but not the values of the corresponding properties. Generator expressions like TARGET_FILE or TARGET_FILE_DIR can be used to specify paths to the plugins or libs using QT_ANDROID_EXTRA_PLUGINS or QT_ANDROID_EXTRA_LIBS properties. Note: The support is added for Qt build and Qt tests only. Pick-to: 6.3 Change-Id: Ifdfd5d855e5a504fed55617786762a0c12b27773 Reviewed-by: Alexandru Croitor --- src/corelib/Qt6AndroidMacros.cmake | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index 3a377491ee3..6804b942c25 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -763,12 +763,16 @@ function(_qt_internal_android_format_deployment_paths target) # windows paths when setting QT_* properties below, so their values are used as is when # generating deployment settings. set_target_properties(${target} PROPERTIES - _qt_native_qml_import_paths "$" - _qt_android_native_qml_root_paths "$" + _qt_native_qml_import_paths + "$>" + _qt_android_native_qml_root_paths + "$>" _qt_android_native_package_source_dir - "$" - _qt_android_native_extra_plugins "$" - _qt_android_native_extra_libs "$" + "$>" + _qt_android_native_extra_plugins + "$>" + _qt_android_native_extra_libs + "$>" ) else() # User projects still may use windows paths inside the QT_* properties below, with