2009-11-02 21:35:31 +01:00
|
|
|
QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3)
|
|
|
|
|
HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator)
|
2009-08-21 12:52:54 +02:00
|
|
|
|
2010-11-01 18:51:20 +01:00
|
|
|
VERSION_TAG = $$replace(QTCREATOR_VERSION, "[-.]", )
|
|
|
|
|
|
2009-11-02 21:35:31 +01:00
|
|
|
equals(QMAKE_DIR_SEP, /) { # unix, mingw+msys
|
2010-11-01 18:51:20 +01:00
|
|
|
QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html QTC_VERSION=$$QTCREATOR_VERSION QTC_VERSION_TAG=$$VERSION_TAG $$QDOC_BIN
|
2009-11-02 21:35:31 +01:00
|
|
|
} else:win32-g++* { # just mingw
|
|
|
|
|
# The lack of spaces in front of the && is necessary!
|
2010-11-01 18:51:20 +01:00
|
|
|
QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& set QTC_VERSION=$$QTCREATOR_VERSION&& set QTC_VERSION_TAG=$$VERSION_TAG&& $$QDOC_BIN
|
2009-11-02 21:35:31 +01:00
|
|
|
} else { # nmake
|
2010-05-26 19:35:13 +02:00
|
|
|
QDOC = set SRCDIR=$$PWD $$escape_expand(\\n\\t) \
|
|
|
|
|
set OUTDIR=$$OUT_PWD/doc/html $$escape_expand(\\n\\t) \
|
2010-11-01 18:51:20 +01:00
|
|
|
set QTC_VERSION=$$QTCREATOR_VERSION $$escape_expand(\\n\\t) \
|
|
|
|
|
set QTC_VERSION_TAG=$$VERSION_TAG $$escape_expand(\\n\\t) \
|
2009-11-02 21:35:31 +01:00
|
|
|
$$QDOC_BIN
|
2008-12-02 12:01:29 +01:00
|
|
|
}
|
|
|
|
|
|
2009-01-07 15:47:25 +01:00
|
|
|
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
|
2009-11-02 21:36:26 +01:00
|
|
|
QCH_FILE = $$IDE_DOC_PATH/qtcreator.qch
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-06-15 14:45:14 +02:00
|
|
|
HELP_DEP_FILES = $$PWD/qtcreator.qdoc \
|
|
|
|
|
$$PWD/addressbook-sdk.qdoc \
|
2010-12-17 20:21:27 +01:00
|
|
|
$$PWD/config/compat.qdocconf \
|
|
|
|
|
$$PWD/config/macros.qdocconf \
|
|
|
|
|
$$PWD/config/qt-cpp-ignore.qdocconf \
|
|
|
|
|
$$PWD/config/qt-defines.qdocconf \
|
|
|
|
|
$$PWD/config/qt-html-templates.qdocconf \
|
|
|
|
|
$$PWD/config/qt-html-default-styles.qdocconf \
|
2010-08-17 11:46:18 +02:00
|
|
|
$$PWD/qtcreator.qdocconf
|
2010-06-15 14:45:14 +02:00
|
|
|
|
2010-12-17 20:21:27 +01:00
|
|
|
html_docs.commands = $$QDOC $$PWD/qtcreator.qdocconf
|
2010-06-15 14:45:14 +02:00
|
|
|
html_docs.depends += $$HELP_DEP_FILES
|
2008-12-02 12:01:29 +01:00
|
|
|
html_docs.files = $$QHP_FILE
|
|
|
|
|
|
2010-12-17 20:21:27 +01:00
|
|
|
html_docs_online.commands = $$QDOC $$PWD/qtcreator-online.qdocconf
|
2010-06-15 14:45:14 +02:00
|
|
|
html_docs_online.depends += $$HELP_DEP_FILES
|
|
|
|
|
|
2009-11-02 21:36:26 +01:00
|
|
|
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
|
2008-12-02 12:01:29 +01:00
|
|
|
qch_docs.depends += html_docs
|
|
|
|
|
qch_docs.files = $$QCH_FILE
|
|
|
|
|
|
2009-03-13 10:31:30 +01:00
|
|
|
unix:!macx {
|
2009-01-20 14:58:10 +01:00
|
|
|
qch_docs.path = /share/doc/qtcreator
|
2009-11-02 21:01:49 +01:00
|
|
|
qch_docs.CONFIG += no_check_exist
|
2009-01-20 14:58:10 +01:00
|
|
|
INSTALLS += qch_docs
|
|
|
|
|
}
|
|
|
|
|
|
2010-06-15 14:45:14 +02:00
|
|
|
docs_online.depends = html_docs_online
|
2009-11-02 21:36:26 +01:00
|
|
|
docs.depends = qch_docs
|
2010-06-15 14:45:14 +02:00
|
|
|
QMAKE_EXTRA_TARGETS += html_docs html_docs_online qch_docs docs docs_online
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-06-15 14:45:14 +02:00
|
|
|
OTHER_FILES = $$HELP_DEP_FILES \
|
|
|
|
|
$$PWD/api/qtcreator-api.qdoc \
|
|
|
|
|
$$PWD/api/qtcreator-api.qdocconf
|
2010-12-08 16:01:31 +01:00
|
|
|
|
|
|
|
|
fixnavi.commands = \
|
|
|
|
|
cd $$targetPath($$PWD) && \
|
|
|
|
|
perl fixnavi.pl -Dqcmanual -Dqtquick \
|
|
|
|
|
qtcreator.qdoc maemodev.qdoc symbiandev.qdoc
|
|
|
|
|
QMAKE_EXTRA_TARGETS += fixnavi
|