diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-07-19 10:23:07 +0200 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-07-19 10:23:07 +0200 |
| commit | 68f89992207c592cf0be8567d5c3d5e43157f9b6 (patch) | |
| tree | 9cda28557edb7eca3ed77f0d5a3fa6482d349deb | |
| parent | 89abcd28004dec5011cfa597a923ead8c542eb0d (diff) | |
| download | qxmpp-68f89992207c592cf0be8567d5c3d5e43157f9b6.tar.gz | |
fix linking speex / theora / vpx for static builds
| -rw-r--r-- | qxmpp.pri | 15 | ||||
| -rw-r--r-- | src/src.pro | 15 |
2 files changed, 15 insertions, 15 deletions
@@ -33,6 +33,21 @@ android { QXMPP_INTERNAL_LIBS = -ldnsapi -lws2_32 } +!isEmpty(QXMPP_USE_SPEEX) { + DEFINES += QXMPP_USE_SPEEX + QXMPP_INTERNAL_LIBS += -lspeex +} + +!isEmpty(QXMPP_USE_THEORA) { + DEFINES += QXMPP_USE_THEORA + QXMPP_INTERNAL_LIBS += -ltheoradec -ltheoraenc +} + +!isEmpty(QXMPP_USE_VPX) { + DEFINES += QXMPP_USE_VPX + QXMPP_INTERNAL_LIBS += -lvpx +} + # Libraries for apps which use QXmpp QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME} contains(QXMPP_LIBRARY_TYPE,staticlib) { diff --git a/src/src.pro b/src/src.pro index 954738c8..6d4aa331 100644 --- a/src/src.pro +++ b/src/src.pro @@ -10,21 +10,6 @@ DEFINES += $$QXMPP_INTERNAL_DEFINES INCLUDEPATH += $$QXMPP_INCLUDEPATH $$QXMPP_INTERNAL_INCLUDES LIBS += $$QXMPP_INTERNAL_LIBS -!isEmpty(QXMPP_USE_SPEEX) { - DEFINES += QXMPP_USE_SPEEX - LIBS += -lspeex -} - -!isEmpty(QXMPP_USE_THEORA) { - DEFINES += QXMPP_USE_THEORA - LIBS += -ltheoradec -ltheoraenc -} - -!isEmpty(QXMPP_USE_VPX) { - DEFINES += QXMPP_USE_VPX - LIBS += -lvpx -} - # Target definition TARGET = $$QXMPP_LIBRARY_NAME VERSION = $$QXMPP_VERSION |
