doc.pri 1 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 {
5 6
    QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& cmd /k $$(QTDIR)\tools\qdoc3\release\qdoc3.exe
    QDOC = $$replace(QDOC, "/", "\\\\") 
7
    HELPGENERATOR = $$(QTDIR)\bin\qhelpgenerator.exe
con's avatar
con committed
8 9
}

10 11
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
QCH_FILE = $$OUT_PWD/doc/qtcreator.qch
con's avatar
con committed
12 13 14 15 16 17 18 19 20

html_docs.commands =$$QDOC $$PWD/qtcreator.qdocconf
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

21 22 23 24 25 26 27 28 29 30
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
31