aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2015-01-07 11:55:09 +0100
committerJeremy Lainé <jeremy.laine@m4x.org>2015-01-07 11:55:09 +0100
commit2d0ed960c037878d45670b58ea10beac1201f558 (patch)
tree7081139b74a5ea15d02851f508d79f1b424ec2fc
parentd1767a6d11258b37835836db5b2f84617940889d (diff)
downloadqxmpp-2d0ed960c037878d45670b58ea10beac1201f558.tar.gz
only build / install docs if QXMPP_USE_DOXYGEN=1 is passed to qmake
-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
+}