diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-01-07 11:55:09 +0100 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2015-01-07 11:55:09 +0100 |
| commit | 2d0ed960c037878d45670b58ea10beac1201f558 (patch) | |
| tree | 7081139b74a5ea15d02851f508d79f1b424ec2fc | |
| parent | d1767a6d11258b37835836db5b2f84617940889d (diff) | |
| download | qxmpp-2d0ed960c037878d45670b58ea10beac1201f558.tar.gz | |
only build / install docs if QXMPP_USE_DOXYGEN=1 is passed to qmake
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | qxmpp.pro | 24 |
2 files changed, 13 insertions, 12 deletions
@@ -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 @@ -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 +} |
