Properly handle Files used in CustomTarget commands.
This commit is contained in:
parent
8e904aaba0
commit
6475bdbe20
|
@ -547,7 +547,7 @@ class Backend():
|
|||
tmp = i.get_filename()[0]
|
||||
i = os.path.join(self.get_target_dir(i), tmp)
|
||||
elif isinstance(i, mesonlib.File):
|
||||
i = os.path.join(i.subdir, i.fname)
|
||||
i = i.rel_to_builddir(self.build_to_src)
|
||||
if absolute_paths:
|
||||
i = os.path.join(self.environment.get_build_dir(), i)
|
||||
# FIXME: str types are blindly added and ignore the 'absolute_paths' argument
|
||||
|
|
|
@ -4,7 +4,7 @@ python = find_program('python3')
|
|||
|
||||
comp = '@0@/@1@'.format(meson.current_source_dir(), 'my_compiler.py')
|
||||
comp2 = '@0@/@1@'.format(meson.current_source_dir(), 'my_compiler2.py')
|
||||
infile = '@0@/@1@'.format(meson.current_source_dir(), 'data_source.txt')
|
||||
infile = files('data_source.txt')[0]
|
||||
|
||||
mytarget = custom_target('bindat',
|
||||
output : 'data.dat',
|
||||
|
|
Loading…
Reference in New Issue