QT_ANDROID_BUILD_DIR
Schreibgeschützter Pfad zum Android-Build-Verzeichnis für das Ziel.
Diese Eigenschaft wurde in Qt 6.12 eingeführt.
Hinweis: Diese Eigenschaft wird nur verwendet, wenn die Android-Plattform als Zielplattform ausgewählt ist.
Enthält den Pfad zum Verzeichnis „ android-build “, das zum Verpacken des Ziels als Android-APK oder -AAB verwendet wird. Der genaue Pfad hängt davon ab, ob „QT_USE_TARGET_ANDROID_BUILD_DIR“ gesetzt ist: Bei „ TRUE “ lautet der Pfad „ <binary-dir>/android-build-<target> “; andernfalls „ <binary-dir>/android-build “.
Die Eigenschaft wird beim Aufruf von ` qt_add_executable() ` gesetzt und ist sofort verfügbar, ohne dass auf die Fertigstellung des Ziels gewartet werden muss.
Diese Eigenschaft ist nützlich, wenn in benutzerdefinierten Befehlen auf das Build-Verzeichnis verwiesen wird:
qt_add_executable(MyApp main.cpp)
get_target_property(android_build_dir MyApp QT_ANDROID_BUILD_DIR)
add_custom_command(POST_BUILD TARGET MyApp
WORKING_DIRECTORY "${android_build_dir}"
COMMAND cmd /c "${android_build_dir}/postbuild.cmd"
)Projekte sollten diese Eigenschaft nicht manuell setzen.
Siehe auch QT_ANDROID_DEPLOYMENT_SETTINGS_FILE und QT_USE_TARGET_ANDROID_BUILD_DIR.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.