From cd78c0bb482798e1d8f3a430ad0e80489e3bdd6c Mon Sep 17 00:00:00 2001 From: Tony Mountifield Date: Wed, 23 Mar 2022 22:57:16 +0000 Subject: [PATCH] Working lrelease rules for Qt < 5.12 --- Jamulus.pro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jamulus.pro b/Jamulus.pro index 275e1043b0..75d514e2de 100644 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -1171,7 +1171,7 @@ QMAKE_EXTRA_TARGETS += clang_format equals(QT_MAJOR_VERSION, 5) { lessThan(QT_MINOR_VERSION, 12) { - message(Using extra lrelease rules for old Qt5) + message(Using extra lrelease rules for old Qt5 *** IGNORE the RCC errors below ***) qtPrepareTool(QMAKE_LRELEASE, lrelease) @@ -1197,6 +1197,11 @@ equals(QT_MAJOR_VERSION, 5) { qmake_qm_files.base = $$OUT_PWD/$$LRELEASE_DIR qmake_qm_files.prefix = $$QM_FILES_RESOURCE_PREFIX RESOURCES += qmake_qm_files + + # This is a hack because old rcc does not output dependencies that do not yet exist. + # This adds the QM files as explicit dependencies of all resource files, but that + # does not matter - it still ensures the qm files get built on the fly. + rcc.depends += $$QM_FILES } else { !isEmpty(QM_FILES_INSTALL_PATH) { qm_files.files = $$QM_FILES