summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2013-03-15 11:44:39 +0100
committerKai Koehne <kai.koehne@digia.com>2013-03-18 16:10:15 +0100
commit290b0e216833adb30e55f62a4448727920104992 (patch)
tree1c9dd500370fa687afde07510b0d06f18e036b59
parent356b68c4fc5f81d74dc5ecc8e8ac76d5e055cc38 (diff)
Fix generation of documentation on windows
Change-Id: Ie7639a9c4dbf1fc972f5e5020042234de016b65f Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
-rw-r--r--doc/doc.pri17
1 files changed, 7 insertions, 10 deletions
diff --git a/doc/doc.pri b/doc/doc.pri
index 8c3a9f208..a460b3b3a 100644
--- a/doc/doc.pri
+++ b/doc/doc.pri
@@ -9,11 +9,16 @@ win32:QDOC_BIN = $$replace(QDOC_BIN, "/", "\\")
IFW_VERSION_TAG = $$replace(IFW_VERSION, "[-.]", )
+defineReplace(cmdEnv) {
+ !equals(QMAKE_DIR_SEP, /): 1 ~= s,^(.*)$,(set \\1) &&,g
+ return("$$1")
+}
+
+QDOC = $$cmdEnv(SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html IFW_VERSION=$$IFW_VERSION IFW_VERSION_TAG=$$IFW_VERSION_TAG QT_INSTALL_DOCS=$$[QT_INSTALL_DOCS]) $$QDOC_BIN
+
unix {
- QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html IFW_VERSION=$$IFW_VERSION IFW_VERSION_TAG=$$IFW_VERSION_TAG $$QDOC_BIN
HELPGENERATOR = $$[QT_INSTALL_BINS]/qhelpgenerator
} else {
- QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& set IFW_VERSION=$$IFW_VERSION&& setIFW_VERSION_TAG=$$IFW_VERSION_TAG&& $$QDOC_BIN
# Always run qhelpgenerator inside its own cmd; this is a workaround for
# an unusual bug which causes qhelpgenerator.exe to do nothing
HELPGENERATOR = cmd /C $$replace($$list($$[QT_INSTALL_BINS]/qhelpgenerator.exe), "/", "\\")
@@ -47,19 +52,11 @@ HELP_DEP_FILES = $$PWD/installerfw.qdoc \
$$PWD/config/qt-html-templates-online.qdocconf \
$$PWD/config/qt-html-templates.qdocconf
-unix {
html_docs.commands = $$QDOC $$PWD/installerfw.qdocconf
-} else {
-html_docs.commands = \"$$QDOC $$PWD/installerfw.qdocconf\"
-}
html_docs.depends += $$HELP_DEP_FILES
html_docs.files = $$QHP_FILE
-unix {
html_docs_online.commands = $$QDOC $$PWD/installerfw-online.qdocconf
-} else {
-html_docs_online.commands = \"$$QDOC $$PWD/installerfw-online.qdocconf\"
-}
html_docs_online.depends += $$HELP_DEP_FILES
html_docs_online.files = $$QHP_FILE