Remove libdir before invoking androiddeployqt

Otherwise it might fail to remove that directory on
its own. (Likely after some subdirectory has accidently
been added.)
This commit is contained in:
Martchus 2019-02-23 13:51:00 +01:00
parent 9dd033996a
commit 8741195cfe
1 changed files with 1 additions and 0 deletions

View File

@ -247,6 +247,7 @@ add_custom_command(OUTPUT "${ANDROID_APK_BINARY_PATH}"
VERBATIM)
add_custom_command(
OUTPUT "${ANDROID_APK_FILE_PATH}"
COMMAND rm -r "${ANDROID_APK_BUILD_DIR}/assets/--Added-by-androiddeployqt--/lib" || true
COMMAND $<TARGET_FILE_DIR:Qt5::qmake>/androiddeployqt
--gradle
--input "${ANDROID_DEPLOYMENT_JSON_FILE}"