From 298413de7750ccf4fcdff15dca507ba6eb470f65 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Thu, 10 Sep 2020 18:16:00 +0300 Subject: [PATCH] Android: use bin for instead of QT6_HOST_INFO_BINDIR ${QT6_HOST_INFO_BINDIR} is returning an empty string making the tools paths unusable, and android apps building fails. Partially revert 09ac1bdfc5d2ee7a537c63e54348a8cf8d905fcf. Task-number: QTBUG-86557 Change-Id: I1522b3a4b45fbcb41894ea3bd7c714f7a79eb954 Reviewed-by: Alexandru Croitor --- src/corelib/Qt6AndroidMacros.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/corelib/Qt6AndroidMacros.cmake b/src/corelib/Qt6AndroidMacros.cmake index 1bfa5eab2d..7b566a7633 100644 --- a/src/corelib/Qt6AndroidMacros.cmake +++ b/src/corelib/Qt6AndroidMacros.cmake @@ -157,7 +157,7 @@ endif() " \"application-binary\": \"${target_output_name}\",\n") # Override qmlimportscanner binary path - set(qml_importscanner_binary_path "${QT_HOST_PATH}/${QT6_HOST_INFO_BINDIR}/qmlimportscanner") + set(qml_importscanner_binary_path "${QT_HOST_PATH}/bin/qmlimportscanner") if (WIN32) string(APPEND qml_importscanner_binary_path ".exe") endif() @@ -166,7 +166,7 @@ endif() " \"qml-importscanner-binary\" : \"${qml_importscanner_binary_path_native}\",\n") # Override rcc binary path - set(rcc_binary_path "${QT_HOST_PATH}/${QT6_HOST_INFO_BINDIR}/rcc") + set(rcc_binary_path "${QT_HOST_PATH}/bin/rcc") if (WIN32) string(APPEND rcc_binary_path ".exe") endif() @@ -235,7 +235,7 @@ function(qt6_android_add_apk_target target) set(should_add_to_global_apk TRUE) endif() - set(deployment_tool "${QT_HOST_PATH}/${QT6_HOST_INFO_BINDIR}/androiddeployqt") + set(deployment_tool "${QT_HOST_PATH}/bin/androiddeployqt") set(apk_dir "$/android-build") add_custom_target(${target}_prepare_apk_dir DEPENDS ${target}