aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-04-24 12:38:48 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-04-24 12:38:48 +0200
commit7727ff8d2e9b6cf8e272f30c859190b4ef272133 (patch)
treef3e598d9338cf32a640857342765c8de314b15c4
parent3ec333e10abe26873576dbe128ed66aca03b52a1 (diff)
downloadqxmpp-7727ff8d2e9b6cf8e272f30c859190b4ef272133.tar.gz
document qmake options
-rw-r--r--README10
-rw-r--r--src/src.pro3
2 files changed, 9 insertions, 4 deletions
diff --git a/README b/README
index 9c157060..ad050815 100644
--- a/README
+++ b/README
@@ -15,9 +15,17 @@ The project uses qmake build system of Qt.
Building from the command line:
cd <where qxmpp.pro is located>
-qmake
+qmake <arguments>
<respective-make-cmd = gmake, make, mingw32-make, nmake>
+You can pass the following arguments to qmake:
+
+ PREFIX=<prefix> to change the install prefix
+ QXMPP_LIBRARY_TYPE=staticlib to build a static version of QXmpp
+ 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
+
Building using Qt Creator:
Open the qxmpp.pro file in Qt Creator and hit "Build All" to build all
diff --git a/src/src.pro b/src/src.pro
index c22bbb3e..8bfe9217 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -10,19 +10,16 @@ DEFINES += $$QXMPP_INTERNAL_DEFINES
INCLUDEPATH += $$QXMPP_INCLUDEPATH $$QXMPP_INTERNAL_INCLUDES
LIBS += $$QXMPP_INTERNAL_LIBS
-# To enable support for the Speex audio codec, pass QXMPP_USE_SPEEX=1 to qmake.
!isEmpty(QXMPP_USE_SPEEX) {
DEFINES += QXMPP_USE_SPEEX
LIBS += -lspeex
}
-# To enable support for the Theora video codec, pass QXMPP_USE_THEORA=1 to qmake.
!isEmpty(QXMPP_USE_THEORA) {
DEFINES += QXMPP_USE_THEORA
LIBS += -ltheoradec -ltheoraenc
}
-# To enable support for the Vpx video codec, pass QXMPP_USE_VPX=1 to qmake.
!isEmpty(QXMPP_USE_VPX) {
DEFINES += QXMPP_USE_VPX
LIBS += -lvpx