mesonbuild/meson

Substitute absolute path to files() when used in string formatting

Open

#1,592 opened on Apr 9, 2017

View on GitHub
 (11 comments) (0 reactions) (0 assignees)Python (4,978 stars) (1,465 forks)batch import
enhancementhelp wanted

Description

From https://github.com/systemd/systemd/pull/5704#issuecomment-292796493:

But I have a trouble with makes files() work in more complicated cases: I need to a path to libudev.sym to specify it as a substring in -Wl,--version-script= option. I tried '-Wl,--version-script=' + libudev_sym '-Wl,--version-script=@0@'.format(libudev_sym)

In either of those two cases, we should substitute the absolute path to the files() object. I thought about relative paths, but there are too many corner-cases.

Contributor guide