summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/default_pre.prf
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2012-05-15 09:47:47 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-15 14:34:15 +0200
commit58ab3a79a0b8a719b62485e8958d30ed8891d830 (patch)
treefbfac2b71bc390678f34a335adebcbfea42e8c57 /mkspecs/features/default_pre.prf
parent8b4bf5f81634aa113029ac72721ebd9143c9ed80 (diff)
Set QMAKE_DOCS_INSTALLDIR to $$[QT_INSTALL_DOCS] to allow overriding in .pro
Normally you want to pass -installdir $$[QT_INSTALL_DOCS] to qdoc by default. However, if you want to force the generation of URL links to the documentation, the option cannot be specified. By setting the QMAKE_DOCS_INSTALLDIR variable in default_pre.prf a project may override it at will, as for example Qt Creator would do. Change-Id: Ib31f03acf4e8050cf2dd3aa33f3a10ed027f1df7 Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'mkspecs/features/default_pre.prf')
-rw-r--r--mkspecs/features/default_pre.prf5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkspecs/features/default_pre.prf b/mkspecs/features/default_pre.prf
index c3776c4da5..f4292c3312 100644
--- a/mkspecs/features/default_pre.prf
+++ b/mkspecs/features/default_pre.prf
@@ -53,3 +53,8 @@ CONFIG = lex yacc warn_on debug uic resources $$CONFIG
unset(QTFWD)
unset(PRO_BASENAME)
}
+
+# Populate the installdir which will be passed to qdoc in the default_post.prf
+# This allows a project to remove the installdir if need be, to trigger building online docs,
+# which Qt Creator does.
+QMAKE_DOCS_INSTALLDIR = $$[QT_INSTALL_DOCS]