aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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