diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 19:03:57 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-10 19:03:57 +0000 |
| commit | adc0d844039b7cb7731691a665e7791fe1016201 (patch) | |
| tree | 28da03db1c3b54ad484620a74bc1ec6dcaa26e73 /source/source.pro | |
| parent | ff47fc0617119330f4dfb3f067fc3aabc799b1d1 (diff) | |
| download | qxmpp-adc0d844039b7cb7731691a665e7791fe1016201.tar.gz | |
let qmake generate pkg-config file
Diffstat (limited to 'source/source.pro')
| -rw-r--r-- | source/source.pro | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/source.pro b/source/source.pro index 1d9359cb..75a1dda7 100644 --- a/source/source.pro +++ b/source/source.pro @@ -1,8 +1,9 @@ include(../qxmpp.pri) TEMPLATE = lib -QT += network \ - xml + +QT += network xml + CONFIG += staticlib # To disable the dependency on QtGui, uncomment the following: @@ -11,11 +12,9 @@ CONFIG += staticlib # To enable support for the Speex codec, uncomment the following: # DEFINES += QXMPP_USE_SPEEX -# Make sure the library gets built in the same location -# regardless of the platform. On win32 the library is -# automagically put in debug/release folders, so do the -# same for other platforms. +# Target definition TARGET = $$QXMPP_LIB +VERSION = $$QXMPP_VERSION DESTDIR = $$QXMPP_LIBRARY_DIR # Header files @@ -102,11 +101,12 @@ SOURCES += QXmppUtils.cpp \ QXmppVCard.cpp \ QXmppVersionIq.cpp +# pkg-config support +CONFIG += create_pc create_prl no_install_prl +QMAKE_PKGCONFIG_DESTDIR = pkgconfig + # Installation -PREFIX = /usr headers.files = $$HEADERS -headers.path = $$PREFIX/include/qxmpp -pkgconfig.files = qxmpp.pc -pkgconfig.path = $$PREFIX/lib/pkgconfig -target.path = $$PREFIX/lib -INSTALLS += headers pkgconfig target +headers.path = $$[QT_INSTALL_PREFIX]/include/qxmpp +target.path = $$[QT_INSTALL_PREFIX]/lib +INSTALLS += headers target |
