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:
parent
e5320303cc
commit
ef21b30454
1 changed files with 6 additions and 3 deletions
|
|
@ -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.")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue