summaryrefslogtreecommitdiffstats
path: root/doc/doc.pri
diff options
context:
space:
mode:
Diffstat (limited to 'doc/doc.pri')
-rw-r--r--doc/doc.pri32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/doc.pri b/doc/doc.pri
new file mode 100644
index 0000000..a3698cb
--- /dev/null
+++ b/doc/doc.pri
@@ -0,0 +1,32 @@
+
+# Determine which qdoc3 binary we should be using. We try to use the
+# one from the Qt we built against. Otherwise use "qdoc3" on the PATH.
+TOPSRC = $$PWD/..
+QDOCCONF_FILE = $$PWD/src/qtestqml.qdocconf
+DESTDIR = $$OUT_PWD/doc/html
+
+win32:!win32-g++ {
+ unixstyle = false
+} else :win32-g++:isEmpty(QMAKE_SH) {
+ unixstyle = false
+} else {
+ unixstyle = true
+}
+
+$$unixstyle {
+ exists($$[QT_INSTALL_BINS]/qdoc3) {
+ QDOC = $$[QT_INSTALL_BINS]/qdoc3
+ } else {
+ QDOC = qdoc3
+ }
+ docs.commands = (TOPSRC=$$TOPSRC DESTDIR=$$DESTDIR $$QDOC -online $$QDOCCONF_FILE)
+} else {
+ exists($$[QT_INSTALL_BINS]\\qdoc3.exe) {
+ QDOC = $$[QT_INSTALL_BINS]\\qdoc3
+ } else {
+ QDOC = qdoc3
+ }
+ docs.commands = (set TOPSRC=$$TOPSRC&set DESTDIR=$$DESTDIR&$$QDOC -online $$QDOCCONF_FILE)
+}
+
+QMAKE_EXTRA_TARGETS += docs