summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-11-01 15:55:19 +0100
committerTobias Hunger <tobias.hunger@qt.io>2018-11-05 14:57:48 +0000
commit187c466d9aeac94db39e1ad4899663c74e2f54f9 (patch)
tree662e673e31fe662b17bcf6e652085e4531f900e3
parent41eabf01c415af078b3853c801ac7ab491025367 (diff)
pro2cmake.py: Improve debugging off included files
Change-Id: I1007a5134a3d3e9ca7e5d3cd9b23ad64f76602be Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rwxr-xr-xutil/cmake/pro2cmake.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/cmake/pro2cmake.py b/util/cmake/pro2cmake.py
index 25cdab3115..353d22762d 100755
--- a/util/cmake/pro2cmake.py
+++ b/util/cmake/pro2cmake.py
@@ -710,8 +710,10 @@ def do_include(scope: Scope, *, debug: bool=False) -> None:
def main() -> None:
args = _parse_commandline()
+ debug_parsing = args.debug_parser or args.debug
+
for file in args.files:
- parseresult = parseProFile(file, debug=args.debug_parser or args.debug)
+ parseresult = parseProFile(file, debug=debug_parsing)
if args.debug_parse_result or args.debug:
print('\n\n#### Parser result:')
@@ -729,7 +731,7 @@ def main() -> None:
print(file_scope.dump())
print('\n#### End of .pro/.pri file structure.\n')
- do_include(file_scope)
+ do_include(file_scope, debug=debug_parsing)
if args.debug_full_pro_structure or args.debug:
print('\n\n#### Full .pro/.pri file structure:')