1 #####################################################################
2 # Qt documentation build
3 #####################################################################
5 DOCS_GENERATION_DEFINES =
6 GENERATOR = $$QT_BUILD_TREE/bin/qhelpgenerator
10 } else :win32-g++:isEmpty(QMAKE_SH) {
17 QDOC = cd $$QT_SOURCE_TREE/tools/qdoc3/test && QT_BUILD_TREE=$$QT_BUILD_TREE QT_SOURCE_TREE=$$QT_SOURCE_TREE $$QT_BUILD_TREE/bin/qdoc3 $$DOCS_GENERATION_DEFINES
19 QDOC = cd $$QT_SOURCE_TREE/tools/qdoc3/test && set QT_BUILD_TREE=$$QT_BUILD_TREE&& set QT_SOURCE_TREE=$$QT_SOURCE_TREE&& $$QT_BUILD_TREE/bin/qdoc3.exe $$DOCS_GENERATION_DEFINES
20 QDOC = $$replace(QDOC, "/", "\\")
22 ADP_DOCS_QDOCCONF_FILE = qt-build-docs.qdocconf
23 QT_DOCUMENTATION = ($$QDOC qt-api-only.qdocconf assistant.qdocconf designer.qdocconf \
24 linguist.qdocconf qmake.qdocconf) && \
25 (cd $$QT_BUILD_TREE && \
26 $$GENERATOR doc-build/html-qt/qt.qhp -o doc/qch/qt.qch && \
27 $$GENERATOR doc-build/html-assistant/assistant.qhp -o doc/qch/assistant.qch && \
28 $$GENERATOR doc-build/html-designer/designer.qhp -o doc/qch/designer.qch && \
29 $$GENERATOR doc-build/html-linguist/linguist.qhp -o doc/qch/linguist.qch && \
30 $$GENERATOR doc-build/html-qmake/qmake.qhp -o doc/qch/qmake.qch \
33 win32-g++:isEmpty(QMAKE_SH) {
34 QT_DOCUMENTATION = $$replace(QT_DOCUMENTATION, "/", "\\\\")
38 adp_docs.commands = ($$QDOC $$ADP_DOCS_QDOCCONF_FILE)
39 adp_docs.depends += sub-tools # qdoc3
40 qch_docs.commands = $$QT_DOCUMENTATION
41 qch_docs.depends += sub-tools
43 docs.depends = adp_docs qch_docs
46 htmldocs.files = $$QT_BUILD_TREE/doc/html
47 htmldocs.path = $$[QT_INSTALL_DOCS]
48 htmldocs.CONFIG += no_check_exist
50 qchdocs.files= $$QT_BUILD_TREE/doc/qch
51 qchdocs.path = $$[QT_INSTALL_DOCS]
52 qchdocs.CONFIG += no_check_exist
54 docimages.files = $$QT_BUILD_TREE/doc/src/images
55 docimages.path = $$[QT_INSTALL_DOCS]/src
57 QMAKE_EXTRA_TARGETS += qdoc adp_docs qch_docs docs
58 INSTALLS += htmldocs qchdocs docimages