summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/qdoc3.pro
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2010-02-10 15:50:22 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2010-02-10 15:50:22 (GMT)
commitbf54d63fb1b60ad899d0b14889109278bd04fd9d (patch)
tree73458cd694a5e8d5eed599458f8f786f30813291 /tools/qdoc3/qdoc3.pro
parent689dba5dde34da15b954d21951e4066b3e29b208 (diff)
downloadQt-bf54d63fb1b60ad899d0b14889109278bd04fd9d.zip
Qt-bf54d63fb1b60ad899d0b14889109278bd04fd9d.tar.gz
Qt-bf54d63fb1b60ad899d0b14889109278bd04fd9d.tar.bz2
qdoc: Added a build rule for the documentation - disabled by default.
Reviewed-by: Trust Me
Diffstat (limited to 'tools/qdoc3/qdoc3.pro')
-rw-r--r--tools/qdoc3/qdoc3.pro21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/qdoc3/qdoc3.pro b/tools/qdoc3/qdoc3.pro
index 441bf39..7705692 100644
--- a/tools/qdoc3/qdoc3.pro
+++ b/tools/qdoc3/qdoc3.pro
@@ -105,5 +105,26 @@ SOURCES += apigenerator.cpp \
webxmlgenerator.cpp \
yyindent.cpp
+### Documentation for qdoc3 ###
+
+win32:!win32-g++ {
+ unixstyle = false
+} else :win32-g++:isEmpty(QMAKE_SH) {
+ unixstyle = false
+} else {
+ unixstyle = true
+}
+
+$$unixstyle {
+ QDOC = cd $$PWD/doc && $$[QT_INSTALL_BINS]/qdoc3
+} else {
+ QDOC = cd $$PWD/doc && $$[QT_INSTALL_BINS]/qdoc3.exe
+ QDOC = $$replace(QDOC, "/", "\\")
+}
+
+docs.commands = $$QDOC qdoc-manual.qdocconf
+
+QMAKE_EXTRA_TARGETS += docs
+
target.path = $$[QT_INSTALL_BINS]
INSTALLS += target