Add a translationsdir variable to the tqt pkgconfig file (tqt-mt.pc).

Signed-off-by: gregory guy <gregory-tde@laposte.net>
(cherry picked from commit 81c83b98e4)
v3.5.13-sru
gregory guy 3 years ago committed by Slávek Banko
parent 6e541a9fda
commit 5de39f7b4c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1556,13 +1556,16 @@ UnixMakefileGenerator::writePkgConfigFile() // ### does make sense only for
QString pluginsDir = project->first("QMAKE_PKGCONFIG_PLUGINS");
if(pluginsDir.isEmpty())
pluginsDir = prefix + "/plugins";
QString translationsDir = qInstallPathTranslations();
if(translationsDir.isEmpty())
translationsDir = prefix + "/translations";
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;
<< "includedir=" << pkgConfigFixPath(includeDir) << "\n"
<< "translationsdir=" << pkgConfigFixPath(translationsDir) << endl;
t << "pluginsdir=" << pkgConfigFixPath(pluginsDir) << endl; // non-standard entry. Provides path for plugins
// non-standard entry. Provides useful info normally only
// contained in the internal .qmake.cache file
t << varGlue("CONFIG", "qt_config=", " ", "") << endl << endl;

Loading…
Cancel
Save