Custom target (custom_tgt
extends tgt
)
This object is returned by custom_target()
and contains a target with the following methods:
Returned by
Custom target objects are returned by the following functions and methods:
Custom target methods
custom_tgt.[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 will make that target depend on this custom target, but the only source added will be the one that corresponds to the index of the custom target's output argument.
Signature
custom_idx [index]()
custom_tgt.full_path()
Returns a full path pointing to the result target file
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()
.
Signature
str full_path()
custom_tgt.to_list()
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.
Signature
(since 0.54.0)
list[custom_idx] to_list()
The results of the search are