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

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

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

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

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

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

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