raiseMesonException('windows.compile_resources does not accept custom targets with more than 1 output.')
name='target {!r}'.format(src.get_id())
else:
raiseMesonException('Unexpected source type {!r}. windows.compile_resources accepts only strings, files, custom targets, and lists thereof.'.format(src))
# Path separators are not allowed in target names
name=name.replace('/','_').replace('\\','_')
res_targets.append(build.CustomTarget('Windows resource for '+name,state.subdir,state.subproject,res_kwargs))