raiseMesonException('windows.compile_resources does not accept custom targets with more than 1 output.')
raiseMesonException('windows.compile_resources does not accept custom targets with more than 1 output.')
name='target {!r}'.format(src.get_id())
name_format='target {!r}'
name=format(src.get_id())
else:
else:
raiseMesonException('Unexpected source type {!r}. windows.compile_resources accepts only strings, files, custom targets, and lists thereof.'.format(src))
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
# Path separators are not allowed in target names
name=name.replace('/','_').replace('\\','_')
name=name.replace('/','_').replace('\\','_')
res_kwargs={
'output':name+'_@BASENAME@.'+suffix,
'input':[src],
'command':[rescomp]+res_args,
'depend_files':wrc_depend_files,
'depends':wrc_depends,
}
# instruct binutils windres to generate a preprocessor depfile
# instruct binutils windres to generate a preprocessor depfile