doc.pri 1.3 KB
Newer Older
1
QDOC_BIN = $$[QT_INSTALL_BINS]/qdoc3
2 3
win32:QDOC_BIN = $$replace(QDOC_BIN, "/", "\\")

con's avatar
con committed
4
unix {
5
    QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html $$QDOC_BIN 
6
    HELPGENERATOR = $$[QT_INSTALL_BINS]/qhelpgenerator
con's avatar
con committed
7
} else {
8 9 10
    QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& $$QDOC_BIN
    # Always run qhelpgenerator inside its own cmd; this is a workaround for
    # an unusual bug which causes qhelpgenerator.exe to do nothing
11
    HELPGENERATOR = cmd /C $$replace($$list($$[QT_INSTALL_BINS]/qhelpgenerator.exe), "/", "\\")
con's avatar
con committed
12 13
}

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

17 18 19
unix {
html_docs.commands = $$QDOC $$PWD/qtcreator.qdocconf
} else {
20
html_docs.commands = \"$$QDOC $$PWD/qtcreator.qdocconf\"
21
}
con's avatar
con committed
22 23 24
html_docs.depends += $$PWD/qtcreator.qdoc $$PWD/qtcreator.qdocconf
html_docs.files = $$QHP_FILE

25
qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE
con's avatar
con committed
26 27 28
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE

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

35 36
docs.depends = qch_docs
QMAKE_EXTRA_TARGETS += html_docs qch_docs docs
con's avatar
con committed
37

38 39 40 41
OTHER_FILES = $$PWD/qtcreator.qdoc \
              $$PWD/qtcreator.qdocconf
OTHER_FILES += $$PWD/api/qtcreator-api.qdoc \
               $$PWD/api/qtcreator-api.qdocconf