v30.3-roots.1 · Commit 5: [PATCH 05/68] feat(qt): preserve Roots identity and GUI support on Core 30.3
src/qt/locale/CMakeLists.txt
Before: src/qt/locale/CMakeLists.txt · After: src/qt/locale/CMakeLists.txt
File metadata
index 61435d209f0b1358f733cb7feb733723b033b360..de3504609732f3386364fb460086fd7fbdc4aaf4 100644
Download original patch · Release notes
Diff rows 1–11 of 11. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/qt/locale/CMakeLists.txt
CHANGED
|
@@ -4,7 +4,10 @@
|
|
| 4 |
|
| 5 |
include(ts_files.cmake)
|
| 6 |
|
| 7 |
-
if(Qt6_VERSION VERSION_GREATER_EQUAL 6.7)
|
|
|
|
|
|
|
|
|
|
| 8 |
qt6_add_lrelease(TS_FILES ${ts_files} LRELEASE_TARGET bitcoinqt_lrelease OPTIONS -silent)
|
| 9 |
else()
|
| 10 |
qt6_add_lrelease(bitcoinqt TS_FILES ${ts_files} OPTIONS -silent)
|
|
|
|
| 4 |
|
| 5 |
include(ts_files.cmake)
|
| 6 |
|
| 7 |
+
if(WITH_QT_VERSION STREQUAL "5")
|
| 8 |
+
qt5_add_translation(qm_files ${ts_files} OPTIONS -silent)
|
| 9 |
+
add_custom_target(bitcoinqt_lrelease DEPENDS ${qm_files})
|
| 10 |
+
elseif(Qt6_VERSION VERSION_GREATER_EQUAL 6.7)
|
| 11 |
qt6_add_lrelease(TS_FILES ${ts_files} LRELEASE_TARGET bitcoinqt_lrelease OPTIONS -silent)
|
| 12 |
else()
|
| 13 |
qt6_add_lrelease(bitcoinqt TS_FILES ${ts_files} OPTIONS -silent)
|