forked from qt-creator/qt-creator
Build: Add target for lupdate with obsolete, without locations
Which would be something that we can check into the repository. Change-Id: I14e3a6d5e5a505b4ae0dc4b22046834ee645ef9c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -93,7 +93,14 @@ function(_create_ts_custom_target name)
|
||||
add_custom_target("${_arg_TS_TARGET_PREFIX}${name}"
|
||||
COMMAND Qt::lupdate -locations relative -no-ui-lines -no-sort "@${ts_file_list}" -ts ${ts_files}
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMENT "Generate .ts files"
|
||||
COMMENT "Generate .ts files, with obsolete translations and files and line numbers"
|
||||
DEPENDS ${_sources}
|
||||
VERBATIM)
|
||||
|
||||
add_custom_target("${_arg_TS_TARGET_PREFIX}${name}_no_locations"
|
||||
COMMAND Qt::lupdate -locations none -no-ui-lines -no-sort "@${ts_file_list}" -ts ${ts_files}
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMENT "Generate .ts files, with obsolete translations, without files and line numbers"
|
||||
DEPENDS ${_sources}
|
||||
VERBATIM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user