From 7ad65b0044ea4732a0cc103e9560acc2beecb944 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Mon, 22 Feb 2021 11:10:01 +0100 Subject: [PATCH] os2 compatibility --- src/librssguard/librssguard.pro | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/librssguard/librssguard.pro b/src/librssguard/librssguard.pro index 39652fb6b..3be04e02d 100644 --- a/src/librssguard/librssguard.pro +++ b/src/librssguard/librssguard.pro @@ -13,13 +13,6 @@ APP_TYPE = "core library" include(../../pri/vars.pri) include(../../pri/defs.pri) -os2 { - LRELEASE = "lrelease-qt5" -} -else { - LRELEASE = "lrelease" -} - message($$MSG_PREFIX: Shadow copy build directory \"$$OUT_PWD\".) message($$MSG_PREFIX: $$APP_NAME version is: \"$$APP_VERSION\".) message($$MSG_PREFIX: Detected Qt version: \"$$QT_VERSION\".) @@ -516,9 +509,11 @@ lupdate.commands = lupdate -no-obsolete -pro $$shell_quote($$shell_path($$PWD/li QMAKE_EXTRA_TARGETS += lupdate -# Make sure QM translations are generated. -message($$MSG_PREFIX: Running: \"$$LRELEASE\" -compress $$shell_quote($$shell_path($$PWD/librssguard.pro))) -system($$LRELEASE -compress $$shell_quote($$shell_path($$PWD/librssguard.pro))) +# Make sure QM translations are nerated. +qtPrepareTool(LRELEASE, lrelease) { + message($$MSG_PREFIX: Running: \"$$LRELEASE\" -compress librssguard.pro) + system($$LRELEASE -compress librssguard.pro) +} mac { IDENTIFIER = $$APP_REVERSE_NAME