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

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

15
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
16
QCH_FILE = $$IDE_DOC_PATH/qtcreator.qch
con's avatar
con committed
17

18
html_docs.commands = $$QDOC $$PWD/qtcreator.qdocconf
con's avatar
con committed
19 20 21
html_docs.depends += $$PWD/qtcreator.qdoc $$PWD/qtcreator.qdocconf
html_docs.files = $$QHP_FILE

22
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
con's avatar
con committed
23 24 25
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE

26
unix:!macx {
Daniel Molkentin's avatar
Daniel Molkentin committed
27
    qch_docs.path = /share/doc/qtcreator
28
    qch_docs.CONFIG += no_check_exist
Daniel Molkentin's avatar
Daniel Molkentin committed
29 30 31
    INSTALLS += qch_docs
}

32 33
docs.depends = qch_docs
QMAKE_EXTRA_TARGETS += html_docs qch_docs docs
con's avatar
con committed
34

35 36 37 38
OTHER_FILES = $$PWD/qtcreator.qdoc \
              $$PWD/qtcreator.qdocconf
OTHER_FILES += $$PWD/api/qtcreator-api.qdoc \
               $$PWD/api/qtcreator-api.qdocconf