diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-12 08:06:23 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-12 08:06:23 +1000 |
commit | 8d2ac078b7a867c5232a2c4d1b9baa762b360f59 (patch) | |
tree | 76cbf203c5574178c0a334a9cc756b1f610c45fb | |
parent | f5f2c1eed704488dae37df1ef92d2667bc91ccbf (diff) |
Windows support for doc generation with "make docs".
-rw-r--r-- | doc/doc.pri | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/doc.pri b/doc/doc.pri index 97a7380..eb2a2d7 100644 --- a/doc/doc.pri +++ b/doc/doc.pri @@ -1,6 +1,10 @@ # Determine which qdoc3 binary we should be using. We try to use the # one from the Qt we built against. Otherwise use "qdoc3" on the PATH. +TOPSRC = $$PWD/.. +QDOCCONF_FILE = $$PWD/src/qtopencl.qdocconf +DESTDIR = $$OUT_PWD/doc/html + win32:!win32-g++ { unixstyle = false } else :win32-g++:isEmpty(QMAKE_SH) { @@ -8,24 +12,21 @@ win32:!win32-g++ { } else { unixstyle = true } + $$unixstyle { exists($$[QT_INSTALL_BINS]/qdoc3) { QDOC = $$[QT_INSTALL_BINS]/qdoc3 } else { QDOC = qdoc3 } + docs.commands = (TOPSRC=$$TOPSRC DESTDIR=$$DESTDIR $$QDOC $$QDOCCONF_FILE) } else { exists($$[QT_INSTALL_BINS]\\qdoc3.exe) { QDOC = $$[QT_INSTALL_BINS]\\qdoc3 } else { QDOC = qdoc3 } + docs.commands = (set TOPSRC=$$TOPSRC&set DESTDIR=$$DESTDIR&$$QDOC $$QDOCCONF_FILE) } -TOPSRC = $$PWD/.. -QDOCCONF_FILE = $$PWD/src/qtopencl.qdocconf -DESTDIR = $$OUT_PWD/doc/html - -docs.commands = (TOPSRC=$$TOPSRC DESTDIR=$$DESTDIR $$QDOC $$QDOCCONF_FILE) - QMAKE_EXTRA_TARGETS += docs |