From 534275dec59b0da2facf199a022a35b981c30c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 25 Nov 2013 12:41:09 +0100 Subject: [PATCH] Add pluginsdir to pkgconfig file --- qmake/generators/unix/unixmake2.cpp | 5 +++++ src/qt.pro | 1 + 2 files changed, 6 insertions(+) diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index 684a6442..8d1dd8c4 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -1543,11 +1543,16 @@ UnixMakefileGenerator::writePkgConfigFile() // ### does make sense only for TQString includeDir = project->first("QMAKE_PKGCONFIG_INCDIR"); if(includeDir.isEmpty()) includeDir = prefix + "/include"; + TQString pluginsDir = project->first("QMAKE_PKGCONFIG_PLUGINS"); + if(pluginsDir.isEmpty()) + pluginsDir = prefix + "/plugins"; t << "prefix=" << prefix << endl; t << "exec_prefix=${prefix}\n" << "libdir=" << pkgConfigFixPath(libDir) << "\n" << "includedir=" << pkgConfigFixPath(includeDir) << endl; + // non-standard entry. Provides path for plugins + t << "pluginsdir=" << pkgConfigFixPath(pluginsDir) << endl; // non-standard entry. Provides useful info normally only // contained in the internal .qmake.cache file t << varGlue("CONFIG", "qt_config=", " ", "") << endl << endl; diff --git a/src/qt.pro b/src/qt.pro index f092d993..b2e0d1af 100644 --- a/src/qt.pro +++ b/src/qt.pro @@ -177,6 +177,7 @@ unix { CONFIG += create_libtool create_pc QMAKE_PKGCONFIG_LIBDIR = $$target.path QMAKE_PKGCONFIG_INCDIR = $$headers.path + QMAKE_PKGCONFIG_PLUGINS = $$plugins.path } wince-* {