From ea7d0011bc7597239258ec27b6ba1e5bad8229c2 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 24 Jun 2008 21:44:53 +0000 Subject: [PATCH] Move language resources to a separate file. Only build and include langs when building release version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17787 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/rbutilqt-lang.qrc | 9 +++++++++ rbutil/rbutilqt/rbutilqt.pro | 7 ++++++- rbutil/rbutilqt/rbutilqt.qrc | 7 ------- 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 rbutil/rbutilqt/rbutilqt-lang.qrc diff --git a/rbutil/rbutilqt/rbutilqt-lang.qrc b/rbutil/rbutilqt/rbutilqt-lang.qrc new file mode 100644 index 0000000000..f66212dbfc --- /dev/null +++ b/rbutil/rbutilqt/rbutilqt-lang.qrc @@ -0,0 +1,9 @@ + + + rbutil_de.qm + rbutil_tr.qm + rbutil_fr.qm + rbutil_zh_CN.qm + rbutil_zh_TW.qm + + diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro index 9e9e8c4976..cdb5522304 100644 --- a/rbutil/rbutilqt/rbutilqt.pro +++ b/rbutil/rbutilqt/rbutilqt.pro @@ -25,7 +25,9 @@ QMAKE_EXTRA_TARGETS += tags # add a custom rule for making the translations lrelease.commands = $$[QT_INSTALL_BINS]/lrelease -silent rbutilqt.pro QMAKE_EXTRA_TARGETS += lrelease -PRE_TARGETDEPS += lrelease +!dbg { + PRE_TARGETDEPS += lrelease +} SOURCES += rbutilqt.cpp \ @@ -154,6 +156,9 @@ RESOURCES += rbutilqt.qrc win32 { RESOURCES += rbutilqt-win.qrc } +!dbg { + RESOURCES += rbutilqt-lang.qrc +} TRANSLATIONS += rbutil_de.ts \ rbutil_fr.ts \ diff --git a/rbutil/rbutilqt/rbutilqt.qrc b/rbutil/rbutilqt/rbutilqt.qrc index 62a804180c..f598769d43 100644 --- a/rbutil/rbutilqt/rbutilqt.qrc +++ b/rbutil/rbutilqt/rbutilqt.qrc @@ -37,11 +37,4 @@ rbutil.ini - - rbutil_de.qm - rbutil_tr.qm - rbutil_fr.qm - rbutil_zh_CN.qm - rbutil_zh_TW.qm -