summaryrefslogtreecommitdiff
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)
105QMAKE_EXTRA_TARGETS += tags 105QMAKE_EXTRA_TARGETS += tags
106 106
107# add a custom rule for making the translations 107# add a custom rule for making the translations
108LRELEASE = $$system(which $$[QT_INSTALL_BINS]/lrelease) 108LRELEASE = $$[QT_INSTALL_BINS]/lrelease
109win32:!cross {
110 LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
111}
109lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_ 112lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_
110QMAKE_EXTRA_TARGETS += lrelease 113QMAKE_EXTRA_TARGETS += lrelease
111!isEmpty(LRELEASE) { 114exists(LRELEASE) {
112 message("using lrelease at $$LRELEASE") 115 message("using lrelease at $$LRELEASE")
113 PRE_TARGETDEPS += lrelease 116 PRE_TARGETDEPS += lrelease
114} 117}
115isEmpty(LRELEASE) { 118!exists(LRELEASE) {
116 warning("could not find lrelease. Skipping translations.") 119 warning("could not find lrelease. Skipping translations.")
117} 120}
118 121