summaryrefslogtreecommitdiffstats
path: root/util/cmake/pro2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-04-03 11:16:14 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-04-03 16:05:26 +0200
commit8a0a31ed682a95cb6fe231c9d6f06d8fb57d33b0 (patch)
treea7122857312010323e300688e73bfbf800027dee /util/cmake/pro2cmake.py
parent61d9428d8c840455dbe8521ad4031d9c638e8d11 (diff)
CMake: pro2cmake: Skip conversion of doc snippets
Most of them are hand-written. Change-Id: Ia3d83cdc9e279420c9b4700993b428e10cf8fb22 Reviewed-by: Leander Beernaert <leander.beernaert@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'util/cmake/pro2cmake.py')
-rwxr-xr-xutil/cmake/pro2cmake.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 8d1a62ddc9..a73f07c9b6 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -40,6 +40,7 @@ import sys
import re
import io
import glob
+import fnmatch
from condition_simplifier import simplify_condition
from condition_simplifier_cache import set_condition_simplified_cache_enabled
@@ -4092,6 +4093,10 @@ def should_convert_project(project_file_path: str = "", ignore_skip_marker: bool
if project_relative_path.startswith("tests/auto/tools/qmake/testdata"):
return False
+ # Skip doc snippets.
+ if fnmatch.fnmatch(project_relative_path, "src/*/doc/snippets/*"):
+ return False
+
# Skip certain config tests.
config_tests = [
# Relative to qtbase/config.tests