summaryrefslogtreecommitdiffstats
path: root/qmake/generators
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-10-08 20:45:37 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-12-30 17:31:35 +0100
commit73a90d568d68aa49c7dd1a51dcafb729efd4f44e (patch)
treef4d80eeb64130f3102053ef202b966a6f5e3e4ac /qmake/generators
parenta5eb1aeef0202f34b4bbb48a1ee942b8358365eb (diff)
downloadqt3-73a90d568d68aa49c7dd1a51dcafb729efd4f44e.tar.gz
qt3-73a90d568d68aa49c7dd1a51dcafb729efd4f44e.zip
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 81c83b98e49b965847ed9bc4b1fa8dd21467c2b2)
Diffstat (limited to 'qmake/generators')
-rw-r--r--qmake/generators/unix/unixmake2.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp
index 3ad8728..4069b14 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -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;