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 an array 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)
(追記) array (追記ここまで)[(追記) custom_idx (追記ここまで)] to_list()
The results of the search are