qt5base-lts/util/cmake
Alexandru Croitor a2e0f19b61 Make debug token output actually work for the pro2cmake qmake parser
setName() and setDebug() need to be called on a parser element before
the parser element is used as a sub-element in another parser element,
otherwise the debug output is not shown.

Hence the "iterate over all locals" approach works only partially.
Instead add a new decorating function add_element() for the
construction of each parser element, and make sure to enable debugging
inside that function.

Unfortunately there is no clean way to avoid duplicating the parser
element name both in the local variable and in the function argument.

Change-Id: Iaa9ed9b7dbb22ec084070b9c049cf51c841d442c
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2019-05-23 14:19:11 +00:00
..
tests Improve qmake syntax parser in pro2cmake.py 2019-05-23 14:17:46 +00:00
cmakeconversionrate.py Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
configurejson2cmake.py Improve configure2cmake to find_package only in certain conditions 2019-05-20 13:15:16 +00:00
generate_module_map.sh Begin port of qtbase to CMake 2018-11-01 11:48:46 +00:00
helper.py Add a few more 3rd party libraries to helper.py 2019-05-21 15:28:24 +00:00
Pipfile CMake: pro2cmake.py: Simplify conditions 2019-01-29 09:29:38 +00:00
pro2cmake.py Make debug token output actually work for the pro2cmake qmake parser 2019-05-23 14:19:11 +00:00
pro_conversion_rate.py Add script to print out list of unconverted .pro files 2019-04-08 14:53:46 +00:00
run_pro2cmake.py Do not overwrite CMakeLists.txt when running run_pro2cmake 2019-03-28 12:29:44 +00:00
special_case_helper.py Keep "special case" modifications when regenerating project files 2019-05-09 11:29:54 +00:00