diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2013-11-25 12:41:07 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-11-25 12:41:07 +0100 |
commit | 3a89e057b7c76a7a5aee753d111bc63f5b8808ac (patch) | |
tree | d11efe8bce3fa0628ad8dca120fa0715dae9e8eb /qmake | |
parent | 56999a270de5c243399b7f237007b87559668c6f (diff) | |
download | qt3-3a89e057b7c76a7a5aee753d111bc63f5b8808ac.tar.gz qt3-3a89e057b7c76a7a5aee753d111bc63f5b8808ac.zip |
Add pluginsdir to pkgconfig file
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/generators/unix/unixmake2.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index cd1c829..354bcf6 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -1543,11 +1543,16 @@ UnixMakefileGenerator::writePkgConfigFile() // ### does make sense only for QString includeDir = project->first("QMAKE_PKGCONFIG_INCDIR"); if(includeDir.isEmpty()) includeDir = prefix + "/include"; + QString 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; |