summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuís Pereira <luis.artur.pereira@gmail.com>2013-08-29 09:46:18 -0700
committerLuís Pereira <luis.artur.pereira@gmail.com>2013-08-31 13:24:19 +0200
commit865932fee0044509fa396d3f9fc2b8bfaa7a125f (patch)
treee43b991c627e7c9785be042d162749442e1797fe
parent7f34b73db42b13cc7e001a4564e6545d547146f1 (diff)
Creates and installs pkg-config .pc file
I was able to build the examples/mimetypefinder example with: g++ `pkg-config --cflags --libs QtMimeTypes` -o mimetypefinder main.cpp Change-Id: Ie783f88b74119392be633a6094ba40d16209a7c3 Signed-off-by: Luís Pereira <luis.artur.pereira@gmail.com> Reviewed-by: David Faure (KDE) <faure@kde.org>
-rw-r--r--src/mimetypes/mimetypes.pro14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/mimetypes/mimetypes.pro b/src/mimetypes/mimetypes.pro
index 1289aae..00365ec 100644
--- a/src/mimetypes/mimetypes.pro
+++ b/src/mimetypes/mimetypes.pro
@@ -9,7 +9,19 @@ DEFINES += QMIME_LIBRARY
DEPENDPATH *= $$PWD
-CONFIG += depend_includepath
+CONFIG += depend_includepath create_pc create_prl no_install_prl
+
+unix {
+ CONFIG += create_pc create_prl no_install_prl
+ QMAKE_PKGCONFIG_DESTDIR = pkgconfig
+
+ QMAKE_PKGCONFIG_NAME = QtMimeTypes
+ QMAKE_PKGCONFIG_DESCRIPTION = A Qt4 backport of the Qt5 mimetypes API
+ QMAKE_PKGCONFIG_PREFIX = $${PREFIX}
+ QMAKE_PKGCONFIG_LIBDIR = $${LIBDIR}
+ QMAKE_PKGCONFIG_INCDIR = $${INCLUDEDIR}/QtMimeTypes
+ QMAKE_PKGCONFIG_REQUIRES = QtCore
+}
QT = core