|
|
|
@ -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) |
|
|
|
|