QT_ANDROID_BUILD_DIR

대상에 대한 Android 빌드 디렉터리의 읽기 전용 경로입니다.

이 속성은 Qt 6.12에서 도입되었습니다.

참고: 이 속성은 Android 플랫폼을 대상으로 하는 경우에만 사용됩니다.

타깃을 Android APK 또는 AAB로 패키징하는 데 사용되는 ` android-build ` 디렉터리의 경로를 포함합니다. 정확한 경로는 ` QT_USE_TARGET_ANDROID_BUILD_DIR `이 설정되었는지 여부에 따라 달라집니다. ` TRUE `인 경우 경로는 ` <binary-dir>/android-build-<target>`이며, 그렇지 않은 경우 ` <binary-dir>/android-build`입니다.

이 속성은 qt_add_executable() 이 호출될 때 설정되며, 타깃의 최종화 과정을 기다릴 필요 없이 즉시 사용할 수 있습니다.

이 속성은 사용자 정의 명령에서 빌드 디렉터리를 참조할 때 유용합니다:

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"
)

프로젝트에서는 이 속성을 수동으로 설정해서는 안 됩니다.

QT_ANDROID_DEPLOYMENT_SETTINGS_FILE 및 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.