doc.pri 2.34 KB
Newer Older
1 2
QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3)
HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator)
3

4 5
VERSION_TAG = $$replace(QTCREATOR_VERSION, "[-.]", )

6
equals(QMAKE_DIR_SEP, /) {   # unix, mingw+msys
7
    QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html QTC_VERSION=$$QTCREATOR_VERSION QTC_VERSION_TAG=$$VERSION_TAG $$QDOC_BIN
8 9
} else:win32-g++* {   # just mingw
    # The lack of spaces in front of the && is necessary!
10
    QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& set QTC_VERSION=$$QTCREATOR_VERSION&& set QTC_VERSION_TAG=$$VERSION_TAG&& $$QDOC_BIN
11
} else {   # nmake
12 13
    QDOC = set SRCDIR=$$PWD $$escape_expand(\\n\\t) \
           set OUTDIR=$$OUT_PWD/doc/html $$escape_expand(\\n\\t) \
14 15
           set QTC_VERSION=$$QTCREATOR_VERSION $$escape_expand(\\n\\t) \
           set QTC_VERSION_TAG=$$VERSION_TAG $$escape_expand(\\n\\t) \
16
           $$QDOC_BIN
con's avatar
con committed
17 18
}

19
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
20
QCH_FILE = $$IDE_DOC_PATH/qtcreator.qch
con's avatar
con committed
21

22 23
HELP_DEP_FILES = $$PWD/qtcreator.qdoc \
                 $$PWD/addressbook-sdk.qdoc \
24 25 26 27 28 29
                 $$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 \
30
                 $$PWD/qtcreator.qdocconf
31

32
html_docs.commands = $$QDOC $$PWD/qtcreator.qdocconf
33
html_docs.depends += $$HELP_DEP_FILES
con's avatar
con committed
34 35
html_docs.files = $$QHP_FILE

36
html_docs_online.commands = $$QDOC $$PWD/qtcreator-online.qdocconf
37 38
html_docs_online.depends += $$HELP_DEP_FILES

39
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
con's avatar
con committed
40 41
qch_docs.depends += html_docs

42
unix:!macx {
43 44 45 46
    inst_qch_docs.files = $$QCH_FILE
    inst_qch_docs.path = /share/doc/qtcreator
    inst_qch_docs.CONFIG += no_check_exist
    INSTALLS += inst_qch_docs
Daniel Molkentin's avatar
Daniel Molkentin committed
47 48
}

49
docs_online.depends = html_docs_online
50
docs.depends = qch_docs
51
QMAKE_EXTRA_TARGETS += html_docs html_docs_online qch_docs docs docs_online
con's avatar
con committed
52

53 54 55
OTHER_FILES = $$HELP_DEP_FILES \
              $$PWD/api/qtcreator-api.qdoc \
              $$PWD/api/qtcreator-api.qdocconf
56 57 58 59

fixnavi.commands = \
    cd $$targetPath($$PWD) && \
    perl fixnavi.pl -Dqcmanual -Dqtquick \
Leena Miettinen's avatar
Leena Miettinen committed
60
        qtcreator.qdoc maemodev.qdoc symbiandev.qdoc qtcreator-faq.qdoc
61
QMAKE_EXTRA_TARGETS += fixnavi