Skip to content

Commit 2be2562

Browse files
deepin-mozartdeepin-bot[bot]
authored andcommitted
fix: remove lupdate in cmake
Log: Change-Id: I381db0c3c2bb8694731691515bb5ba22b45d55bb
1 parent 7badad1 commit 2be2562

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

assets/CMakeLists.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,6 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
1111
file(GLOB TS_FILES "translations/*.ts")
1212
foreach(TS_FILE IN LISTS TS_FILES)
1313
message(STATUS "process ts file: ${TS_FILE}")
14-
find_program(LUPDATE_COMMAND
15-
NAMES
16-
lupdate-Qt6
17-
lupdate
18-
lupdate-qt${QT_VERSION_MAJOR}
19-
lupdate-qt4
20-
lupdate-pro
21-
PATHS
22-
/usr/lib/qt6/bin
23-
/usr/bin
24-
)
25-
if (NOT LUPDATE_COMMAND)
26-
message(FATAL_ERROR "lupdate command not found")
27-
endif()
28-
execute_process(COMMAND ${LUPDATE_COMMAND} "${CMAKE_SOURCE_DIR}/src/" -ts -no-obsolete
29-
"${TS_FILE}"
30-
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
31-
OUTPUT_VARIABLE OUTPUT
32-
ERROR_VARIABLE ERROR
33-
RESULT_VARIABLE RES)
34-
if (RES)
35-
message(FATAL_ERROR "process ts file result : ${RES}, with error: ${ERROR}")
36-
endif()
37-
message(STATUS "${OUTPUT}")
3814
execute_process(COMMAND lrelease ${TS_FILE})
3915
endforeach()
4016
endif()

0 commit comments

Comments
 (0)