aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--qxmpp.pro24
2 files changed, 13 insertions, 12 deletions
diff --git a/README.md b/README.md
index 5d2f9138..64bd3702 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,7 @@ You can pass the following arguments to qmake:
other: $$[QT_INSTALL_PREFIX]
QXMPP_AUTOTEST_INTERNAL=1 to enabled internal autotests
QXMPP_LIBRARY_TYPE=staticlib to build a static version of QXmpp
+ QXMPP_USE_DOXYGEN=1 to build the HTML documentation
QXMPP_USE_SPEEX=1 to enable speex audio codec
QXMPP_USE_THEORA=1 to enable theora video codec
QXMPP_USE_VPX=1 to enable vpx video codec
diff --git a/qxmpp.pro b/qxmpp.pro
index b3b0f069..a309a48e 100644
--- a/qxmpp.pro
+++ b/qxmpp.pro
@@ -1,22 +1,22 @@
include(qxmpp.pri)
+CONFIG += ordered
TEMPLATE = subdirs
SUBDIRS = src
-
android | ios {
} else {
- SUBDIRS += tests examples doc
- INSTALLS += docs
+ SUBDIRS += tests examples
}
-CONFIG += ordered
+!isEmpty(QXMPP_USE_DOXYGEN) {
+ docs.commands = cd doc/ && $(MAKE) docs
+ docs.depends = sub-doc
+ docs.files = doc/html
+ docs.path = $$PREFIX/share/doc/qxmpp
+ docs.CONFIG += no_check_exist directory
-# HTML documentation
-docs.commands = cd doc/ && $(MAKE) docs
-docs.depends = sub-doc
-docs.files = doc/html
-docs.path = $$PREFIX/share/doc/qxmpp
-docs.CONFIG += no_check_exist directory
-
-QMAKE_EXTRA_TARGETS += docs
+ INSTALLS += docs
+ QMAKE_EXTRA_TARGETS += docs
+ SUBDIRS += doc
+}