From 8a0a31ed682a95cb6fe231c9d6f06d8fb57d33b0 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 3 Apr 2020 11:16:14 +0200 Subject: CMake: pro2cmake: Skip conversion of doc snippets Most of them are hand-written. Change-Id: Ia3d83cdc9e279420c9b4700993b428e10cf8fb22 Reviewed-by: Leander Beernaert Reviewed-by: Alexandru Croitor --- util/cmake/pro2cmake.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/cmake') 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 -- cgit v1.2.3