aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-04-24 11:01:56 +0200
committerJeremy Lainé <jeremy.laine@m4x.org>2012-04-24 11:01:56 +0200
commit56a9e26f64fb807e78aab7dfcf43a3e1b48b4b2f (patch)
treead517504bc10bd4db58a9661c0f9749c97d1c4d7 /src
parentfd16ecf8c0ca1175ccb5b428eba4d421527ffda0 (diff)
downloadqxmpp-56a9e26f64fb807e78aab7dfcf43a3e1b48b4b2f.tar.gz
make it possible to enable speex/theora/vpx using qmake QXMPP_USE_x=1
Diffstat (limited to 'src')
-rw-r--r--src/src.pro24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/src.pro b/src/src.pro
index 3ac4a1c5..c22bbb3e 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -10,17 +10,23 @@ DEFINES += $$QXMPP_INTERNAL_DEFINES
INCLUDEPATH += $$QXMPP_INCLUDEPATH $$QXMPP_INTERNAL_INCLUDES
LIBS += $$QXMPP_INTERNAL_LIBS
-# To enable support for the Speex audio codec, uncomment the following:
-# DEFINES += QXMPP_USE_SPEEX
-# LIBS += -lspeex
+# 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, uncomment the following:
-# DEFINES += QXMPP_USE_THEORA
-# LIBS += -ltheoradec -ltheoraenc
+# 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, uncomment the following:
-# DEFINES += QXMPP_USE_VPX
-# LIBS += -lvpx
+# 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
+}
# Target definition
TARGET = $$QXMPP_LIBRARY_NAME