rbutil: enable translations when cross-compiling via MXE

This change allows qmake to find the lrelease binary even when cross
compiling.

Change-Id: I3c0eb3c2002c3ce7a2eeea877db5fa6942c9b2ba
This commit is contained in:
Franklin Wei 2019-11-10 01:38:17 -05:00
parent a5f228eee2
commit ad6e3f3a29

View file

@ -107,7 +107,8 @@ QMAKE_EXTRA_TARGETS += tags
# add a custom rule for making the translations
LRELEASE = $$[QT_INSTALL_BINS]/lrelease
win32:!cross {
win32:!cross:!exists($$LRELEASE) {
LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
}
lrelease.commands = $$LRELEASE -silent $$_PRO_FILE_
@ -164,6 +165,8 @@ contains(QT_MAJOR_VERSION, 5) {
}
}
CONFIG += c++11
dbg {
CONFIG += debug thread qt warn_on
DEFINES += DBG