doc.pri 1.03 KB
Newer Older
con's avatar
con committed
1
unix {
2
    QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html $$(QTDIR)/tools/qdoc3/qdoc3
3
    HELPGENERATOR = $$(QTDIR)/bin/qhelpgenerator
con's avatar
con committed
4
} else {
Daniel Molkentin's avatar
Daniel Molkentin committed
5
    QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& $$(QTDIR)\tools\qdoc3\release\qdoc3.exe
6
    HELPGENERATOR = $$(QTDIR)\bin\qhelpgenerator.exe
con's avatar
con committed
7 8
}

9 10
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
QCH_FILE = $$OUT_PWD/doc/qtcreator.qch
con's avatar
con committed
11

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

qch_docs.commands = $$HELPGENERATOR -o $$QCH_FILE $$QHP_FILE
qch_docs.depends += html_docs
qch_docs.files = $$QCH_FILE

24 25 26 27 28 29 30 31 32 33
macx {
    cp_docs.commands = $${QMAKE_COPY_DIR} $${OUT_PWD}/doc $${OUT_PWD}/bin/QtCreator.app/Contents/Resources
    cp_docs.depends += qch_docs
    docs.depends = cp_docs
    QMAKE_EXTRA_TARGETS += html_docs qch_docs cp_docs docs
}
!macx {
    docs.depends = qch_docs
    QMAKE_EXTRA_TARGETS += html_docs qch_docs docs
}
con's avatar
con committed
34