summaryrefslogtreecommitdiffstats
path: root/util/cmake/configurejson2cmake.py
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2019-05-23 15:20:41 +0200
committerAlexandru Croitor <[email protected]>2019-05-23 14:19:11 +0000
commita2e0f19b61453dc472bca657935310dcfbf9fc86 (patch)
treec8472ec3542e71694615245efe72855359505a83 /util/cmake/configurejson2cmake.py
parent6dfeb81bcb05360e83a55b519886014c55e8e771 (diff)
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 <[email protected]>
Diffstat (limited to 'util/cmake/configurejson2cmake.py')
0 files changed, 0 insertions, 0 deletions