summaryrefslogtreecommitdiffstats
path: root/qmake/generators/unix
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-11-25 12:41:09 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-11-25 12:41:09 +0100
commit534275dec59b0da2facf199a022a35b981c30c50 (patch)
tree54e204bff8010152fe21abc2234b4c7cd6f2eaa7 /qmake/generators/unix
parenteeaba432771e0706f7d25da663123aad6f4e5b85 (diff)
downloadtqt3-534275dec59b0da2facf199a022a35b981c30c50.tar.gz
tqt3-534275dec59b0da2facf199a022a35b981c30c50.zip
Add pluginsdir to pkgconfig file
Diffstat (limited to 'qmake/generators/unix')
-rw-r--r--qmake/generators/unix/unixmake2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index 684a6442b..8d1dd8c43 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;