aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2017-09-22 11:21:48 +0200
committerDominik Holland <dominik.holland@pelagicore.com>2017-09-22 13:10:00 +0000
commitb6ef2b16a42f9f27120a1e4af128ee7ed650d7d8 (patch)
treebb5f5585e3a8502229cba8e69a7aae4faf6988b2
parente702fc2ec3802f07dde37cba481d0cf5d0676d7e (diff)
Create the ivigenerator during the prepare_docs phase
This is needed to autogenerate the API, which is later parsed by qdoc Change-Id: Ic61c7010f78b376832a23b07f9a92476f660738d Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
-rw-r--r--src/tools/ivigenerator/qface_internal_build.pri7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/ivigenerator/qface_internal_build.pri b/src/tools/ivigenerator/qface_internal_build.pri
index 33b98be..10424d9 100644
--- a/src/tools/ivigenerator/qface_internal_build.pri
+++ b/src/tools/ivigenerator/qface_internal_build.pri
@@ -83,3 +83,10 @@ osx {
virtualenv-python.CONFIG = no_check_exist
INSTALLS += virtualenv-python
}
+
+# Create the ivigenerator when the prepare_docs target is run, to generate the code
+# and have it ready when qdoc parses it for the documentation
+prepare_docs {
+ prepare_docs.depends += $${deploy_virtualenv.target}
+ QMAKE_EXTRA_TARGETS += prepare_docs
+}