doc.pri 2.09 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 24 25
HELP_DEP_FILES = $$PWD/qtcreator.qdoc \
                 $$PWD/addressbook-sdk.qdoc \
                 $$PWD/qt-defines.qdocconf \
                 $$PWD/qt-html-templates.qdocconf \
26
                 $$PWD/qtcreator.qdocconf
27

28
html_docs.commands = $$QDOC -creator $$PWD/qtcreator.qdocconf
29
html_docs.depends += $$HELP_DEP_FILES
con's avatar
con committed
30 31
html_docs.files = $$QHP_FILE

32
html_docs_online.commands = $$QDOC -online $$PWD/qtcreator.qdocconf
33 34
html_docs_online.depends += $$HELP_DEP_FILES

35
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
con's avatar
con committed
36 37 38
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE

39
unix:!macx {
Daniel Molkentin's avatar
Daniel Molkentin committed
40
    qch_docs.path = /share/doc/qtcreator
41
    qch_docs.CONFIG += no_check_exist
Daniel Molkentin's avatar
Daniel Molkentin committed
42 43 44
    INSTALLS += qch_docs
}

45
docs_online.depends = html_docs_online
46
docs.depends = qch_docs
47
QMAKE_EXTRA_TARGETS += html_docs html_docs_online qch_docs docs docs_online
con's avatar
con committed
48

49 50 51
OTHER_FILES = $$HELP_DEP_FILES \
              $$PWD/api/qtcreator-api.qdoc \
              $$PWD/api/qtcreator-api.qdocconf
52 53 54 55 56 57

fixnavi.commands = \
    cd $$targetPath($$PWD) && \
    perl fixnavi.pl -Dqcmanual -Dqtquick \
        qtcreator.qdoc maemodev.qdoc symbiandev.qdoc
QMAKE_EXTRA_TARGETS += fixnavi