summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2015-05-30 19:01:33 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2015-05-30 19:01:33 +0200
commitef21b304547a20569e95df782e29759b5f9ee44a (patch)
tree0885560e565188ba54d9450724aa25e9b6f8f0e4
parente5320303cca1d2dc0ea41f45c0321e1c039e7c7f (diff)
downloadrockbox-ef21b304547a20569e95df782e29759b5f9ee44a.tar.gz
rockbox-ef21b304547a20569e95df782e29759b5f9ee44a.zip
Make lrelease detection work on Windows.
Windows doesn't have which, so building natively on Windows didn't create translations anymore. Use a which-less approach instead. Change-Id: I7b4c40b26d68da54277a148e8e2d76ac81061c8b
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro9
1 files changed, 6 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index d4cf5042bb..71ab77ac62 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -105,14 +105,17 @@ tags.depends = $(SOURCES)
QMAKE_EXTRA_TARGETS += tags
# add a custom rule for making the translations
-LRELEASE = $$system(which $$[QT_INSTALL_BINS]/lrelease)
+LRELEASE = $$[QT_INSTALL_BINS]/lrelease
+win32:!cross {
+ LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
+}
lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_
QMAKE_EXTRA_TARGETS += lrelease
-!isEmpty(LRELEASE) {
+exists(LRELEASE) {
message("using lrelease at $$LRELEASE")
PRE_TARGETDEPS += lrelease
}
-isEmpty(LRELEASE) {
+!exists(LRELEASE) {
warning("could not find lrelease. Skipping translations.")
}