| 1 |
name: custom_tgt |
| 2 |
long_name: Custom target |
| 3 |
extends: tgt |
| 4 |
description: | |
| 5 |
This object is returned by [[custom_target]] and contains a target with the following methods: |
| 6 |
|
| 7 |
methods: |
| 8 |
- name: full_path |
| 9 |
returns: str |
| 10 |
description: | |
| 11 |
Returns a full path pointing to the result target file |
| 12 |
NOTE: In most cases using the object itself will do the same job as |
| 13 |
this and will also allow Meson to setup inter-target dependencies |
| 14 |
correctly. Please file a bug if that doesn't work for you. |
| 15 |
*(since 0.54.0)* It can be also called on indexes objects: |
| 16 |
`custom_targets[i].full_path()`. |
| 17 |
|
| 18 |
- name: "[index]" |
| 19 |
returns: custom_idx |
| 20 |
description: | |
| 21 |
Returns an opaque object that references this target, and |
| 22 |
can be used as a source in other targets. When it is used as such it |
| 23 |
will make that target depend on this custom target, but the only |
| 24 |
source added will be the one that corresponds to the index of the |
| 25 |
custom target's output argument. |
| 26 |
|
| 27 |
- name: to_list |
| 28 |
returns: list[custom_idx] |
| 29 |
since: 0.54.0 |
| 30 |
description: | |
| 31 |
Returns a list of opaque objects that references this target, |
| 32 |
and can be used as a source in other targets. This can be used to |
| 33 |
iterate outputs with `foreach` loop. |