713 B
713 B
Can link against custom targets
The output of custom_target
and custom_target[i]
can be used in link_with
and
link_whole
keyword arguments. This is useful for integrating custom
code generator steps, but note that there are many limitations:
-
Meson can not know about link dependencies of the custom target. If the target requires further link libraries, you need to add them manually
-
The user is responsible for ensuring that the code produced by different toolchains are compatible.
-
custom_target
may only be used when it has a single output file. Usecustom_target[i]
when dealing with multiple output files. -
The output file must have the correct file name extension.