From 3fdb3b10bfd575d413302ce9c66e0785325701d2 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Tue, 2 Jan 2018 20:49:29 +0100 Subject: [PATCH] Enhance build process. --- rssguard.pro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rssguard.pro b/rssguard.pro index a9d3524c8..e602aebef 100755 --- a/rssguard.pro +++ b/rssguard.pro @@ -8,14 +8,12 @@ # Usage: # a) DEBUG build for testing. (out of source build type) # cd ../build-dir -# lrelease ../rssguard-dir/rssguard.pro # qmake ../rssguard-dir/rssguard.pro -r CONFIG+=debug PREFIX=./usr # make # make install # # b) RELEASE build for production use. (out of source build type) # cd ../build-dir -# lrelease ../rssguard-dir/rssguard.pro # qmake ../rssguard-dir/rssguard.pro -r CONFIG+=release PREFIX=./usr # make # make install @@ -607,6 +605,11 @@ lupdate.commands = lupdate $$shell_path($$PWD/rssguard.pro) QMAKE_EXTRA_TARGETS += lupdate +# Make sure QM translations are nerated. +qtPrepareTool(LRELEASE, lrelease) { + system($$LRELEASE_EXECUTABLE -compress $$shell_quote($$shell_path($$PWD/rssguard.pro))) +} + # Create new "make 7zip" target and "make zip" target. win32 { seven_zip.target = 7zip