diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-04-19 15:32:24 -0700 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-05-08 20:59:46 +0200 |
commit | 7053d9abfdef64c1f507173609fad4c9866441eb (patch) | |
tree | 0eaa78e007a8c69066dfa152490edc64e01da636 /docs/markdown/Qt5-module.md | |
parent | ccab7d64f474f00e010b2c6601e63d8034c5552a (diff) | |
download | meson-7053d9abfdef64c1f507173609fad4c9866441eb.zip meson-7053d9abfdef64c1f507173609fad4c9866441eb.tar.gz meson-7053d9abfdef64c1f507173609fad4c9866441eb.tar.bz2 |
Allow link_depends to take strings, Files or generated objects. Closes #1172
Currently only strings can be passed to the link_depends argument of
executable and *library, which solves many cases, but not every one.
This patch allows generated sources and Files to be passed as well.
On the implementation side, it uses a helper method to keep the more
complex logic separated from the __init__ method. This also requires
that Targets set their link_depends paths as Files, and the backend is
responsible for converting to strings when it wants them.
This adds tests for the following cases:
- Using a file in a subdir
- Using a configure_file as an input
- Using a custom_target as an input
It does not support using a generator as an input, since currently that
would require calling the generator twice, once for the -Wl argument,
and once for the link_depends.
Also updates the docs.
Diffstat (limited to 'docs/markdown/Qt5-module.md')
0 files changed, 0 insertions, 0 deletions