aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-01-06 15:50:45 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2020-02-04 21:28:32 +0200
commit15eb0014acf256f4b3b3ffaf269d681e287f9c92 (patch)
tree06cc6100de34eb307252179b940de81c22ef33ec /docs
parent8d68fa22e0508337dd449a7dc66d70d9d15f4f8e (diff)
downloadmeson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.zip
meson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.tar.gz
meson-15eb0014acf256f4b3b3ffaf269d681e287f9c92.tar.bz2
interpreter: Iterate custom target outputs
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Reference-manual.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 57fc1f7..e3830cc 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -2299,6 +2299,8 @@ contains a target with the following methods:
NOTE: In most cases using the object itself will do the same job as
this and will also allow Meson to setup inter-target dependencies
correctly. Please file a bug if that doesn't work for you.
+ *Since 0.54.0* it can be also called on indexes objects:
+ `custom_targets[i].full_path()`.
- `[index]` returns an opaque object that references this target, and
can be used as a source in other targets. When it is used as such it
@@ -2306,6 +2308,10 @@ contains a target with the following methods:
source added will be the one that corresponds to the index of the
custom target's output argument.
+- `to_list()` *Since 0.54.0*, returns a list of opaque objects that references
+ this target, and can be used as a source in other targets. This can be used to
+ iterate outputs with `foreach` loop.
+
### `dependency` object
This object is returned by [`dependency()`](#dependency) and contains