@ -119,23 +119,22 @@ class WindowsModule(ExtensionModule):
src=unholder(src)
ifisinstance(src,str):
name_formatted=src
name_format='file {!r}'
name=os.path.join(state.subdir,src)
elifisinstance(src,mesonlib.File):
name_formatted=src.fname
name_format='file {!r}'
name=src.relative_name()
elifisinstance(src,build.CustomTarget):
iflen(src.get_outputs())>1:
raiseMesonException('windows.compile_resources does not accept custom targets with more than 1 output.')
name_formatted=src.get_basename()
name_format='target {!r}'
name=src.get_id()
else:
raiseMesonException('Unexpected source type {!r}. windows.compile_resources accepts only strings, files, custom targets, and lists thereof.'.format(src))