diff options
| -rw-r--r-- | qxmpp.pri | 23 | ||||
| -rw-r--r-- | src/src.pro | 10 |
2 files changed, 15 insertions, 18 deletions
@@ -9,19 +9,24 @@ CONFIG(debug, debug|release) { QXMPP_LIBRARY_NAME = qxmpp } -QXMPP_LIBS = -L$$QXMPP_LIBRARY_DIR -l$${QXMPP_LIBRARY_NAME} +# Libraries used internal by QXmpp +symbian { + unset(QXMPP_INTERNAL_LIBS) +} else:unix { + QXMPP_INTERNAL_LIBS = -lresolv +} else:win32 { + QXMPP_INTERNAL_LIBS = -ldnsapi +} -# Symbian needs a .lib extension to recognise the library as static +# Libraries for apps which use QXmpp symbian { - QXMPP_LIBS = -L$$QXMPP_LIBRARY_DIR -l$${QXMPP_LIBRARY_NAME}.lib + # Symbian needs a .lib extension to recognise the library as static + QXMPP_LIBS = -L$$QXMPP_LIBRARY_DIR -l$${QXMPP_LIBRARY_NAME}.lib +} else { + QXMPP_LIBS = -L$$QXMPP_LIBRARY_DIR -l$${QXMPP_LIBRARY_NAME} } # FIXME: we should be able to use the link_prl option to automatically pull # in the extra libraries which the qxmpp library needs, but this does not # seem to work on win32, so we specify the dependencies here: -unix { - QXMPP_LIBS += -lresolv -} -win32 { - QXMPP_LIBS += -ldnsapi -} +QXMPP_LIBS += $$QXMPP_INTERNAL_LIBS diff --git a/src/src.pro b/src/src.pro index 8d012799..7319203c 100644 --- a/src/src.pro +++ b/src/src.pro @@ -3,8 +3,8 @@ include(../qxmpp.pri) TEMPLATE = lib QT += network xml - CONFIG += staticlib +LIBS += $$QXMPP_INTERNAL_LIBS # To disable the dependency on QtGui, uncomment the following: # DEFINES += QXMPP_NO_GUI @@ -14,14 +14,6 @@ CONFIG += staticlib # DEFINES += QXMPP_USE_SPEEX # LIBS += -lspeex -# DNS support -unix { - LIBS += -lresolv -} -win32 { - LIBS += -ldnsapi -} - # Target definition TARGET = $$QXMPP_LIBRARY_NAME VERSION = $$QXMPP_VERSION |
