Convert custom target sources to Files with self.source_strings_to_files.

pull/3061/head
Jussi Pakkanen 7 years ago committed by Jon Turney
parent 963107b737
commit 0a1468f8f3
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 4
      mesonbuild/interpreter.py

@ -3231,6 +3231,8 @@ root and issuing %s.
'Implementation-only, without FeatureNew checks, for internal use'
name = args[0]
kwargs['install_mode'] = self._get_kwarg_install_mode(kwargs)
if 'input' in kwargs:
kwargs['input'] = self.source_strings_to_files(extract_as_list(kwargs, 'input'))
tg = CustomTargetHolder(build.CustomTarget(name, self.subdir, self.subproject, kwargs), self)
self.add_target(name, tg.held_object)
return tg
@ -3908,7 +3910,7 @@ Try setting b_lundef to false instead.'''.format(self.coredata.base_options['b_s
sources = [sources]
for s in sources:
if isinstance(s, (mesonlib.File, GeneratedListHolder,
CustomTargetHolder, CustomTargetIndexHolder)):
TargetHolder, CustomTargetIndexHolder)):
pass
elif isinstance(s, str):
self.validate_within_subproject(self.subdir, s)

Loading…
Cancel
Save