diff options
Diffstat (limited to 'mkspecs/features')
-rw-r--r-- | mkspecs/features/ivigenerator.prf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mkspecs/features/ivigenerator.prf b/mkspecs/features/ivigenerator.prf index 346ade9..487dcbe 100644 --- a/mkspecs/features/ivigenerator.prf +++ b/mkspecs/features/ivigenerator.prf @@ -58,6 +58,16 @@ Makefile.target = $$MAKEFILE # when using a QMAKE_EXTRA_COMPILER Makefile.depends = $$relative_path($$qface_sources.output, $$OUT_PWD) +# Make the qmake_all target work for usage inside QtCreator +# Because of the Makefile target the generator is called before the actual Makefile +# is evaluated. This is a problem if the virtualenv is not created yet. +# In this case we create the target with a dependency to the forceRebuild file. +# This file is created during the qmake run and updated once the virtualenv is ready +# and will then cause a rerun of qmake +!isEmpty(QTIVI_ROOT):!exists($$VIRTUALENV_PATH): { + Makefile.depends = $$shadowed($$IVI_GENERATOR_PATH)/forceRebuild +} + # After the generation, this should exists and qmake can create the correct build tree exists($$qface_sources.output) { include($$qface_sources.output) |