Skip to content

Commit

Permalink
Working lrelease rules for Qt < 5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
softins authored and ann0see committed May 21, 2023
1 parent f4e57b3 commit cd78c0b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Jamulus.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit cd78c0b

Please sign in to comment.