1

I am trying to delete a directory containing sub-directories and files before the compilation starts from a qmake pro file:

if exists($$OUT_PWD/android-build/src) del_tree($$OUT_PWD/android-build/src)

I tried different commands like QMAKE_DEL_TREE and $(DEL_TREE) but nothing worked. How can I delete an eventually existing directory?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
Hyndrix
  • 4,282
  • 7
  • 41
  • 82

1 Answers1

1

It turned out that $(DEL_TREE) works fine. It did not work due to a mkspec bug in the Android Windows build invironment: https://bugreports.qt.io/browse/QTCREATORBUG-25373

Hyndrix
  • 4,282
  • 7
  • 41
  • 82