|
1 defineReplace(targetPath) { |
|
2 return($$replace(1, /, $$QMAKE_DIR_SEP)) |
|
3 } |
|
4 |
|
5 QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3) |
|
6 HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator) |
|
7 |
|
8 equals(QMAKE_DIR_SEP, /) { # unix, mingw+msys |
|
9 QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/html $$QDOC_BIN |
|
10 } else:win32-g++* { # just mingw |
|
11 # The lack of spaces in front of the && is necessary! |
|
12 QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/html&& $$QDOC_BIN |
|
13 } else { # nmake |
|
14 QDOC = set SRCDIR=$$PWD $$escape_expand(\n\t) \ |
|
15 set OUTDIR=$$OUT_PWD/html $$escape_expand(\n\t) \ |
|
16 $$QDOC_BIN |
|
17 } |
|
18 |
|
19 QHP_FILE = $$OUT_PWD/html/smartinstaller.qhp |
|
20 QCH_FILE = $$PWD/smartinstaller.qch |
|
21 |
|
22 HELP_DEP_FILES +=$$PWD/smartinstaller.qdoc \ |
|
23 $$PWD/smartinstaller.qdocconf \ |
|
24 $$PWD/smartinstaller-online.qdocconf |
|
25 |
|
26 html_docs.commands = $$QDOC $$PWD/smartinstaller.qdocconf |
|
27 html_docs.depends += $$HELP_DEP_FILES |
|
28 html_docs.files = $$QHP_FILE |
|
29 |
|
30 html_docs_online.commands = $$QDOC $$PWD/smartinstaller-online.qdocconf |
|
31 html_docs_online.depends += $$HELP_DEP_FILES |
|
32 html_docs_online.files = $$QHP_FILE |
|
33 |
|
34 qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE |
|
35 qch_docs.depends += html_docs |
|
36 qch_docs.files = $$QCH_FILE |
|
37 |
|
38 docs.depends = qch_docs |
|
39 docs_online.depends = html_docs_online |
|
40 QMAKE_EXTRA_TARGETS += html_docs qch_docs docs html_docs_online docs_online |
|
41 |
|
42 OTHER_FILES = $$HELP_DEP_FILES |