qt5base-lts/util/cmake/tests
Leander Beernaert 341ccc3b59 Enable recursive expansion of simple qmake variables
Allow _expand_value to expand variables that may have more than
one level of expansion when the regular expression covers all
of the input. E.g.:

A = Foo
B = $$A/Bar
scope.expand('$$B')

While the original code was able to expand the string '$$B/source.cpp' to
'Foo/Bar/source.cpp', it could not expand the string '$$B' completely.
The latter would always return '$$A/Bar' instead of the expected 'Foo/Bar'
string.

A test case has been added which coveres the above example.

Change-Id: Ie3b5739c24ecbeb67d408dd204b0f54bab1d0f3f
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-07-18 07:26:01 +00:00
..
data Improve qmake syntax parser in pro2cmake.py 2019-05-23 14:17:46 +00:00
__init__.py
test_lc_fixup.py Remove all line continuations when processing qmake syntax 2019-05-23 14:19:22 +00:00
test_logic_mapping.py CMake: pro2cmake.py: Improve condition simplification code 2019-02-27 16:02:58 +00:00
test_operations.py CMake: Fix test_operations 2019-05-17 13:26:26 +00:00
test_parsing.py Fix comment fixup in pro2cmake 2019-06-06 08:38:08 +00:00
test_scope_handling.py Enable recursive expansion of simple qmake variables 2019-07-18 07:26:01 +00:00