Fix handling of more functions in handle_function_value

Essentially pass them through without failing the whole
conversion process.

Change-Id: I7bbd198203f79b45120a7254e2ecdf58e32f9525
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Alexandru Croitor 2019-08-28 12:57:12 +02:00
parent 5c75f6a21a
commit c3ef1a012b

View File

@ -318,7 +318,8 @@ def handle_function_value(group: pp.ParseResults):
# Return the whole expression as a string.
if function_name in ['join', 'cmakeRelativePath', 'shell_quote', 'shadowed', 'cmakeTargetPath',
'shell_path']:
'shell_path', 'cmakeProcessLibs', 'cmakeTargetPaths',
'cmakePortablePaths', 'escape_expand']:
return 'join({})'.format(''.join(function_args))
raise RuntimeError('No logic to handle function "{}", please add one in handle_function_value().'.format(function_name))