summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-24 21:44:53 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2008-06-24 21:44:53 +0000
commitea7d0011bc7597239258ec27b6ba1e5bad8229c2 (patch)
treea7c31b949489aadedb34404bd4ed929c91339654 /rbutil/rbutilqt
parent82ed56bf59bc15d786c5280972789999e24d759b (diff)
downloadrockbox-ea7d0011bc7597239258ec27b6ba1e5bad8229c2.tar.gz
rockbox-ea7d0011bc7597239258ec27b6ba1e5bad8229c2.tar.bz2
rockbox-ea7d0011bc7597239258ec27b6ba1e5bad8229c2.zip
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
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r--rbutil/rbutilqt/rbutilqt-lang.qrc9
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro7
-rw-r--r--rbutil/rbutilqt/rbutilqt.qrc7
3 files changed, 15 insertions, 8 deletions
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 @@
+<RCC>
+ <qresource prefix="/lang" >
+ <file>rbutil_de.qm</file>
+ <file>rbutil_tr.qm</file>
+ <file>rbutil_fr.qm</file>
+ <file>rbutil_zh_CN.qm</file>
+ <file>rbutil_zh_TW.qm</file>
+ </qresource>
+</RCC>
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 @@
<qresource prefix="/ini" >
<file>rbutil.ini</file>
</qresource>
- <qresource prefix="/lang" >
- <file>rbutil_de.qm</file>
- <file>rbutil_tr.qm</file>
- <file>rbutil_fr.qm</file>
- <file>rbutil_zh_CN.qm</file>
- <file>rbutil_zh_TW.qm</file>
- </qresource>
</RCC>