summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_docs_targets.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-01-08 17:06:43 +0100
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-01-08 18:51:26 +0000
commitc04cf29b78f3f5747c58dd89ca21523e387ee3ac (patch)
tree1298e82fa6b4a2998db49191718746d6caebe5de /mkspecs/features/qt_docs_targets.prf
parent1949f24faf29c9f2dc620d2bda3383932f1f7148 (diff)
fix docs creation in debug_and_release builds
qtAddToolEnv() (via qtPrepareTool()) does not write the tool wrapper scripts during build passes, while qt_docs.prf (which calls it for qdoc and qhelpgenerator) was loaded only during build passes. the consequence was that the makefiles tried calling non-existent scripts. amends 5418d77a1, sort of. Change-Id: I64ab573495ca339be4c7b5e8c6848b298b6cb605 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/qt_docs_targets.prf')
-rw-r--r--mkspecs/features/qt_docs_targets.prf20
1 files changed, 10 insertions, 10 deletions
diff --git a/mkspecs/features/qt_docs_targets.prf b/mkspecs/features/qt_docs_targets.prf
index 89f080cc5e..1f9e2b0b47 100644
--- a/mkspecs/features/qt_docs_targets.prf
+++ b/mkspecs/features/qt_docs_targets.prf
@@ -29,17 +29,17 @@ QMAKE_EXTRA_TARGETS += docs
contains(TEMPLATE, subdirs) {
for(inst, DOC_TARGETS): \
prepareRecursiveTarget($$inst)
-} else:debug_and_release:!build_pass {
- sub = $$first(BUILDS)
- for(inst, DOC_TARGETS) {
- $${inst}.CONFIG = recursive
- $${inst}.recurse = $$sub
- }
} else {
- # apps and libs only generate docs if QMAKE_DOCS is set
- !isEmpty(QMAKE_DOCS) {
- # backwards compat hack
- load(qt_docs)
+ debug_and_release:!build_pass {
+ sub = $$first(BUILDS)
+ for(inst, DOC_TARGETS) {
+ $${inst}.CONFIG = recursive
+ $${inst}.recurse = $$sub
+ }
}
+ # Apps and libs request docs creation by setting QMAKE_DOCS.
+ # This is a backwards compat hack - technically, the modules which need it
+ # are supposed to load(qt_docs) themselves.
+ !isEmpty(QMAKE_DOCS): load(qt_docs)
}
QMAKE_EXTRA_TARGETS += $$DOC_TARGETS