QT_ANDROID_BUILD_DIR
Ruta de solo lectura al directorio de compilación de Android para el destino.
Esta propiedad se introdujo en Qt 6.12.
Nota: Esta propiedad solo se utiliza si se selecciona la plataforma Android como destino.
Contiene la ruta al directorio « android-build » utilizado para empaquetar el destino como un APK o AAB de Android. La ruta exacta depende de si está definida la variable QT_USE_TARGET_ANDROID_BUILD_DIR: cuando TRUE, la ruta es <binary-dir>/android-build-<target>; en caso contrario, <binary-dir>/android-build.
La propiedad se establece al llamar a ` qt_add_executable() ` y está disponible de inmediato, sin necesidad de esperar a que finalice la compilación del objetivo.
Esta propiedad resulta útil a la hora de hacer referencia al directorio de compilación en comandos personalizados:
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"
)Los proyectos no deben establecer esta propiedad manualmente.
Véase también QT_ANDROID_DEPLOYMENT_SETTINGS_FILE y 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.