diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-24 08:21:12 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-25 09:04:59 +0100 |
commit | 2951a450a1bf13bab3e3520cc992b3ee58e922bb (patch) | |
tree | 2643283d554a5209a80ba1ace73c4cbc9cd15643 | |
parent | 9917377ef6416f707826134541f1b93032bdbed8 (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>
-rw-r--r-- | translations/CMakeLists.txt | 6 |
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) |