From 8001eb03684f43395d21f9cd80836e5c713323cf Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 2 Aug 2018 00:48:42 +0800 Subject: [PATCH] Avoid regenerating .qm files unnecessarily Translations included at top level is to avoid regenerating the .qm files every time when src.pro is processed. Partially revert 5b7c089dd2fce88017fcdc5911801fc809175c0d. --- qbittorrent.pro | 4 ++++ src/src.pro | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/qbittorrent.pro b/qbittorrent.pro index a7f2a137d..1910dbaef 100644 --- a/qbittorrent.pro +++ b/qbittorrent.pro @@ -17,6 +17,10 @@ tarball.commands += rm -fR $${PROJECT_NAME}-$${PROJECT_VERSION} QMAKE_EXTRA_TARGETS += tarball +# Translations included here (at top level) is to avoid regenerating the .qm files +# every time when src.pro is processed +include(src/lang/lang.pri) + # For Qt Creator beautifier DISTFILES += \ uncrustify.cfg diff --git a/src/src.pro b/src/src.pro index 5bbf39b3c..e1c069ff2 100644 --- a/src/src.pro +++ b/src/src.pro @@ -76,7 +76,4 @@ RESOURCES += \ lang/lang.qrc \ searchengine/searchengine.qrc -# Translations -include(lang/lang.pri) - DESTDIR = .