doc.pri 1.58 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 19 20 21
HELP_DEP_FILES = $$PWD/qtcreator.qdoc \
                 $$PWD/addressbook-sdk.qdoc \
                 $$PWD/qt-defines.qdocconf \
                 $$PWD/qt-html-templates.qdocconf \
22
                 $$PWD/qtcreator.qdocconf
23

24
html_docs.commands = $$QDOC -creator $$PWD/qtcreator.qdocconf
25
html_docs.depends += $$HELP_DEP_FILES
con's avatar
con committed
26 27
html_docs.files = $$QHP_FILE

28
html_docs_online.commands = $$QDOC -online $$PWD/qtcreator.qdocconf
29 30
html_docs_online.depends += $$HELP_DEP_FILES

31
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
con's avatar
con committed
32 33 34
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE

35
unix:!macx {
Daniel Molkentin's avatar
Daniel Molkentin committed
36
    qch_docs.path = /share/doc/qtcreator
37
    qch_docs.CONFIG += no_check_exist
Daniel Molkentin's avatar
Daniel Molkentin committed
38 39 40
    INSTALLS += qch_docs
}

41
docs_online.depends = html_docs_online
42
docs.depends = qch_docs
43
QMAKE_EXTRA_TARGETS += html_docs html_docs_online qch_docs docs docs_online
con's avatar
con committed
44

45 46 47
OTHER_FILES = $$HELP_DEP_FILES \
              $$PWD/api/qtcreator-api.qdoc \
              $$PWD/api/qtcreator-api.qdocconf