diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2015-05-30 19:01:33 +0200 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2015-05-30 19:01:33 +0200 |
commit | ef21b304547a20569e95df782e29759b5f9ee44a (patch) | |
tree | 0885560e565188ba54d9450724aa25e9b6f8f0e4 /rbutil/rbutilqt/rbutilqt.pro | |
parent | e5320303cca1d2dc0ea41f45c0321e1c039e7c7f (diff) | |
download | rockbox-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
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r-- | rbutil/rbutilqt/rbutilqt.pro | 9 |
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) | |||
105 | QMAKE_EXTRA_TARGETS += tags | 105 | QMAKE_EXTRA_TARGETS += tags |
106 | 106 | ||
107 | # add a custom rule for making the translations | 107 | # add a custom rule for making the translations |
108 | LRELEASE = $$system(which $$[QT_INSTALL_BINS]/lrelease) | 108 | LRELEASE = $$[QT_INSTALL_BINS]/lrelease |
109 | win32:!cross { | ||
110 | LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe | ||
111 | } | ||
109 | lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_ | 112 | lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_ |
110 | QMAKE_EXTRA_TARGETS += lrelease | 113 | QMAKE_EXTRA_TARGETS += lrelease |
111 | !isEmpty(LRELEASE) { | 114 | exists(LRELEASE) { |
112 | message("using lrelease at $$LRELEASE") | 115 | message("using lrelease at $$LRELEASE") |
113 | PRE_TARGETDEPS += lrelease | 116 | PRE_TARGETDEPS += lrelease |
114 | } | 117 | } |
115 | isEmpty(LRELEASE) { | 118 | !exists(LRELEASE) { |
116 | warning("could not find lrelease. Skipping translations.") | 119 | warning("could not find lrelease. Skipping translations.") |
117 | } | 120 | } |
118 | 121 | ||