summaryrefslogtreecommitdiffstats
path: root/translations
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-24 08:21:12 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-02-25 09:04:59 +0100
commit2951a450a1bf13bab3e3520cc992b3ee58e922bb (patch)
tree2643283d554a5209a80ba1ace73c4cbc9cd15643 /translations
parent9917377ef6416f707826134541f1b93032bdbed8 (diff)
Remove messages from the doc snippets
Rewrite the file list handling to operate on CMake lists and add an exclusion filter for doc snippets. Change-Id: I8ece8ff386076f49b3c330764a2b4a58a6552158 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'translations')
-rw-r--r--translations/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
index 551261d..5639b09 100644
--- a/translations/CMakeLists.txt
+++ b/translations/CMakeLists.txt
@@ -46,9 +46,13 @@ function(add_ts_targets catalog)
set(source_files_list_file "${CMAKE_CURRENT_BINARY_DIR}/${catalog}_file_list.txt")
set(inclusion_regex "\\.h$|\\.cpp$|\\.hpp$|\\.cxx$|\\.cc$|\\.mm$|\\.qml$|\\.ui$")
+ list(FILTER file_list INCLUDE REGEX "${inclusion_regex}")
+ list(FILTER file_list EXCLUDE REGEX /doc/snippets/)
+ list(JOIN file_list "\n" file_list_string)
+
file(GENERATE
OUTPUT "${source_files_list_file}"
- CONTENT "$<JOIN:$<FILTER:${file_list},INCLUDE,${inclusion_regex}>,\n>"
+ CONTENT "${file_list_string}"
)
add_custom_target(ts-${catalog}-all)