File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,6 @@ set(CMAKE_AUTORCC ON)
54
54
set (CMAKE_AUTOUIC ON )
55
55
set (CMAKE_AUTOUIC_SEARCH_PATHS forms )
56
56
57
- # TODO: The file(GLOB ...) command should be replaced with an explicit
58
- # file list. Such a change must be synced with the corresponding change
59
- # to https://github.com/bitcoin-core/bitcoin-maintainer-tools/blob/main/update-translations.py
60
- file (GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts )
61
- set_source_files_properties (${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR} /locale )
62
- qt6_add_translation (qm_files ${ts_files} )
63
-
64
57
configure_file (bitcoin_locale.qrc bitcoin_locale.qrc USE_SOURCE_PERMISSIONS COPYONLY )
65
58
66
59
# The bitcoinqt sources have to include headers in
@@ -250,6 +243,13 @@ if(qt_lib_type STREQUAL "STATIC_LIBRARY")
250
243
)
251
244
endif ()
252
245
246
+ file (GLOB ts_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} locale/*.ts )
247
+ set_source_files_properties (${ts_files} PROPERTIES OUTPUT_LOCATION ${CMAKE_CURRENT_BINARY_DIR} /locale )
248
+ qt6_add_lrelease (bitcoinqt
249
+ TS_FILES ${ts_files}
250
+ OPTIONS -silent
251
+ )
252
+
253
253
add_executable (bitcoin-qt
254
254
main.cpp
255
255
../init/bitcoin-qt.cpp
You can’t perform that action at this time.
0 commit comments