doc.pri 1.38 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
QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp
10
QCH_FILE = $$OUT_PWD/share/doc/qtcreator/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
unix:!macx {
    system("mkdir -p `dirname $$QCH_FILE` && touch $$QCH_FILE")

Daniel Molkentin's avatar
Daniel Molkentin committed
27 28 29 30
    qch_docs.path = /share/doc/qtcreator
    INSTALLS += qch_docs
}

31
macx {
con's avatar
con committed
32 33
    DOC_DIR = $${OUT_PWD}/bin/QtCreator.app/Contents/Resources/doc 
    cp_docs.commands = mkdir -p $${DOC_DIR} ; $${QMAKE_COPY} $${QCH_FILE} $${DOC_DIR}
34 35 36 37 38 39 40 41
    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
42

43 44
OTHER_FILES = qtcreator.qdoc \
              qtcreator.qdocconf
con's avatar
con committed
45 46
OTHER_FILES += api/qtcreator-api.qdoc \
               api/qtcreator-api.qdocconf