1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2015-05-30 19:01:33 +02:00
parent e5320303cc
commit ef21b30454

View file

@ -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.")
}