From d10bbc2e6a73accabcce3ee1ab482a91da03ab43 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Mon, 21 Feb 2022 16:25:11 +0100 Subject: [PATCH] Convert Android paths to JSON compatible Convert paths in the QT_ANDROID_EXTRA_PLUGINS and QT_ANDROID_EXTRA_LIBS target properties to a JSON compatible, when generating deployment settings using finalizers in user projects. Pick-to: 6.3 Change-Id: I8878435d69688c21e44b22339dc84495b9cea5eb Reviewed-by: Alexandru Croitor --- src/corelib/Qt6AndroidMacros.cmake | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index 436fa91b9b7..fd8d0c0aa77 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -208,11 +208,11 @@ function(qt6_android_generate_deployment_settings target) # Extra plugins _qt_internal_add_android_deployment_multi_value_property(file_contents "android-extra-plugins" - ${target} "QT_ANDROID_EXTRA_PLUGINS" ) + ${target} "_qt_android_native_extra_plugins" ) # Extra libs _qt_internal_add_android_deployment_multi_value_property(file_contents "android-extra-libs" - ${target} "QT_ANDROID_EXTRA_LIBS" ) + ${target} "_qt_android_native_extra_libs" ) # package source dir _qt_internal_add_android_deployment_property(file_contents "android-package-source-directory" @@ -735,11 +735,11 @@ endfunction() # "android-extra-plugins": "plugin1,plugin2", function(_qt_internal_add_android_deployment_multi_value_property out_var json_key target property) set(property_genex - "$" + "$>" ) string(JOIN "" list_join_genex "$," + "${property_genex}," "," ">" ) @@ -765,6 +765,8 @@ function(_qt_internal_android_format_deployment_paths target) _qt_android_native_qml_root_paths "$" _qt_android_native_package_source_dir "$" + _qt_android_native_extra_plugins "$" + _qt_android_native_extra_libs "$" ) else() # User projects still may use windows paths inside the QT_* properties below, with @@ -777,6 +779,12 @@ function(_qt_internal_android_format_deployment_paths target) _qt_internal_android_format_deployment_path_property(${target} QT_ANDROID_PACKAGE_SOURCE_DIR _qt_android_native_package_source_dir) + + _qt_internal_android_format_deployment_path_property(${target} + QT_ANDROID_EXTRA_PLUGINS _qt_android_native_extra_plugins) + + _qt_internal_android_format_deployment_path_property(${target} + QT_ANDROID_EXTRA_LIBS _qt_android_native_extra_libs) endif() endfunction()