2011-02-21 16:30:31 +01:00
|
|
|
# Adapted from doc/doc.pri in Qt Creator.
|
|
|
|
|
2013-02-11 11:50:35 +01:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
QDOC_BIN = $$[QT_INSTALL_BINS]/qdoc
|
|
|
|
} else {
|
|
|
|
QDOC_BIN = $$[QT_INSTALL_BINS]/qdoc3
|
|
|
|
}
|
2011-02-21 16:30:31 +01:00
|
|
|
win32:QDOC_BIN = $$replace(QDOC_BIN, "/", "\\")
|
|
|
|
|
2013-02-13 11:00:08 +01:00
|
|
|
IFW_VERSION_TAG = $$replace(IFW_VERSION, "[-.]", )
|
|
|
|
|
2013-03-15 11:44:39 +01:00
|
|
|
defineReplace(cmdEnv) {
|
|
|
|
!equals(QMAKE_DIR_SEP, /): 1 ~= s,^(.*)$,(set \\1) &&,g
|
|
|
|
return("$$1")
|
|
|
|
}
|
|
|
|
|
|
|
|
QDOC = $$cmdEnv(SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html IFW_VERSION=$$IFW_VERSION IFW_VERSION_TAG=$$IFW_VERSION_TAG QT_INSTALL_DOCS=$$[QT_INSTALL_DOCS]) $$QDOC_BIN
|
|
|
|
|
2011-02-21 16:30:31 +01:00
|
|
|
unix {
|
|
|
|
HELPGENERATOR = $$[QT_INSTALL_BINS]/qhelpgenerator
|
|
|
|
} else {
|
|
|
|
# Always run qhelpgenerator inside its own cmd; this is a workaround for
|
|
|
|
# an unusual bug which causes qhelpgenerator.exe to do nothing
|
|
|
|
HELPGENERATOR = cmd /C $$replace($$list($$[QT_INSTALL_BINS]/qhelpgenerator.exe), "/", "\\")
|
|
|
|
}
|
|
|
|
|
2013-02-11 11:50:35 +01:00
|
|
|
greaterThan(QT_MAJOR_VERSION, 4) {
|
|
|
|
HELPGENERATOR = $$HELPGENERATOR -platform minimal
|
|
|
|
}
|
|
|
|
|
|
|
|
QHP_FILE = $$OUT_PWD/doc/html/ifw.qhp
|
|
|
|
QCH_FILE = $$OUT_PWD/doc/ifw.qch
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
HELP_DEP_FILES = $$PWD/installerfw.qdoc \
|
2013-02-21 13:56:28 +01:00
|
|
|
$$PWD/installerfw-getting-started.qdoc \
|
|
|
|
$$PWD/installerfw-overview.qdoc \
|
|
|
|
$$PWD/installerfw-reference.qdoc \
|
|
|
|
$$PWD/installerfw-using.qdoc \
|
|
|
|
$$PWD/noninteractive.qdoc \
|
|
|
|
$$PWD/operations.qdoc \
|
2011-02-21 16:30:31 +01:00
|
|
|
$$PWD/scripting.qdoc \
|
2013-02-21 13:56:28 +01:00
|
|
|
$$PWD/tutorial.qdoc \
|
2012-03-19 11:00:22 +01:00
|
|
|
$$PWD/installerfw.qdocconf \
|
|
|
|
$$PWD/installerfw-online.qdocconf \
|
|
|
|
$$PWD/config/compat.qdocconf \
|
2013-02-26 16:45:27 +01:00
|
|
|
$$PWD/config/installerfw-project.qdocconf \
|
2012-03-19 11:00:22 +01:00
|
|
|
$$PWD/config/macros.qdocconf \
|
|
|
|
$$PWD/config/qt-cpp-ignore.qdocconf \
|
|
|
|
$$PWD/config/qt-defines.qdocconf \
|
2013-02-26 16:45:27 +01:00
|
|
|
$$PWD/config/qt-html-default-styles.qdocconf \
|
|
|
|
$$PWD/config/qt-html-online-styles.qdocconf \
|
|
|
|
$$PWD/config/qt-html-templates-online.qdocconf \
|
|
|
|
$$PWD/config/qt-html-templates.qdocconf
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
html_docs.commands = $$QDOC $$PWD/installerfw.qdocconf
|
|
|
|
html_docs.depends += $$HELP_DEP_FILES
|
|
|
|
html_docs.files = $$QHP_FILE
|
|
|
|
|
2012-03-19 11:00:22 +01:00
|
|
|
html_docs_online.commands = $$QDOC $$PWD/installerfw-online.qdocconf
|
2011-02-21 16:30:31 +01:00
|
|
|
html_docs_online.depends += $$HELP_DEP_FILES
|
|
|
|
html_docs_online.files = $$QHP_FILE
|
|
|
|
|
|
|
|
qch_docs.commands = $$HELPGENERATOR -o $$QCH_FILE $$QHP_FILE
|
|
|
|
qch_docs.depends += html_docs
|
|
|
|
qch_docs.files = $$QCH_FILE
|
|
|
|
|
|
|
|
unix:!macx {
|
|
|
|
qch_docs.path = $$PREFIX/doc
|
|
|
|
qch_docs.CONFIG += no_check_exist
|
|
|
|
INSTALLS += qch_docs
|
|
|
|
}
|
|
|
|
|
|
|
|
docs_online.depends = html_docs_online
|
|
|
|
QMAKE_EXTRA_TARGETS += html_docs_online docs_online
|
|
|
|
|
|
|
|
macx {
|
|
|
|
DOC_DIR = "$${OUT_PWD}/bin/Simulator.app/Contents/Resources/doc"
|
|
|
|
cp_docs.commands = mkdir -p \"$${DOC_DIR}\" ; $${QMAKE_COPY} \"$${QCH_FILE}\" \"$${DOC_DIR}\"
|
|
|
|
cp_docs.depends += qch_docs
|
|
|
|
docs.depends = cp_docs
|
|
|
|
QMAKE_EXTRA_TARGETS += html_docs qch_docs cp_docs docs ht
|
|
|
|
}
|
|
|
|
!macx {
|
|
|
|
docs.depends = qch_docs
|
|
|
|
QMAKE_EXTRA_TARGETS += html_docs qch_docs docs
|
|
|
|
}
|
|
|
|
|
|
|
|
OTHER_FILES = $$HELP_DEP_FILES
|
2012-02-15 12:33:57 +01:00
|
|
|
|
|
|
|
fixnavi.commands = \
|
|
|
|
cd $$replace(PWD, "/", $$QMAKE_DIR_SEP) && \
|
|
|
|
perl fixnavi.pl installerfw.qdoc .
|
|
|
|
QMAKE_EXTRA_TARGETS += fixnavi
|