summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2021-10-08 20:45:37 +0200
committerSlávek Banko <[email protected]>2021-10-14 14:41:32 +0200
commit4ac1b8fae502420e9d5659ab079a49100b5cc7cf (patch)
tree38e9fb6521484e16a4ab2af3f5c1270de099735c /qmake
parente7ed2e6e73d09424969c8ad29b41e7fabe9a52e2 (diff)
downloadtqt3-4ac1b8fae502420e9d5659ab079a49100b5cc7cf.tar.gz
tqt3-4ac1b8fae502420e9d5659ab079a49100b5cc7cf.zip
Add a translationsdir variable to the tqt pkgconfig file (tqt-mt.pc).
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit cf770e66e5addc86fae6b6aeca08850627069a16)
Diffstat (limited to 'qmake')
-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 06b1b3c05..07813d61f 100644
--- a/qmake/generators/unix/unixmake2.cpp
+++ b/qmake/generators/unix/unixmake2.cpp
@@ -1556,13 +1556,16 @@ UnixMakefileGenerator::writePkgConfigFile() // ### does make sense only for
TQString pluginsDir = project->first("QMAKE_PKGCONFIG_PLUGINS");
if(pluginsDir.isEmpty())
pluginsDir = prefix + "/plugins";
+ TQString translationsDir = tqInstallPathTranslations();
+ 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;