1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

[Build] Try to use only "lrelease" binary from PATH with Qt5

If the lrelease binary is not in QT_INSTALL_BINS/lrelease, try to use
just lrelease from PATH with Qt5, instead of incorrectly trying to use
lrelease-qt4
This commit is contained in:
David Rosca 2014-05-23 11:40:12 +02:00
parent 36d64af403
commit 75b532a4a1

View File

@ -141,10 +141,11 @@ equals(d_disable_updates_check, "true") { DEFINES *= DISABLE_UPDATES_CHECK }
isEmpty(QMAKE_LRELEASE) { isEmpty(QMAKE_LRELEASE) {
win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe win32|os2:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
unix {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt4 } # Try to use lrelease from PATH
} else { unix:!exists($$QMAKE_LRELEASE) {
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease } isEqual(QT_MAJOR_VERSION, 4): QMAKE_LRELEASE = lrelease-qt4
else: QMAKE_LRELEASE = lrelease
} }
} }