diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-09-17 16:10:09 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-09-17 16:10:09 +0000 |
| commit | 189d3340259b27659be7cc3ee9617c8e26ef133b (patch) | |
| tree | b075cb33738f630b5142ca2b855fd53fd21db6e5 /qxmpp.pri | |
| parent | a89d8a1b6f1ce28b1cde7149cc1ede8128b74e31 (diff) | |
| download | qxmpp-189d3340259b27659be7cc3ee9617c8e26ef133b.tar.gz | |
rework link flags
Diffstat (limited to 'qxmpp.pri')
| -rw-r--r-- | qxmpp.pri | 23 |
1 files changed, 14 insertions, 9 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 |
