diff options
author | gregory guy <gregory-tde@laposte.net> | 2021-10-08 20:45:37 +0200 |
---|---|---|
committer | gregory guy <gregory-tde@laposte.net> | 2021-10-10 16:27:55 +0200 |
commit | cf770e66e5addc86fae6b6aeca08850627069a16 (patch) | |
tree | bd32d1bde59f20c066842d33c7a7af9f4d067390 | |
parent | 0d60417c83fd2bd8b6fccb6dd7171b113296860a (diff) | |
download | tqt3-cf770e66e5addc86fae6b6aeca08850627069a16.tar.gz tqt3-cf770e66e5addc86fae6b6aeca08850627069a16.zip |
Add a translationsdir variable to the tqt pkgconfig file (tqt-mt.pc).
Signed-off-by: gregory guy <gregory-tde@laposte.net>
-rw-r--r-- | qmake/generators/unix/unixmake2.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index 93b752247..b7ef82ec5 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; |