aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-03-28 23:11:30 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-28 23:11:30 +0200
commit2259db2683d9e60c727ce847d1da7a759b190006 (patch)
tree70b3a2b6def3c218dc61ee762dfb9bbcaec9de2e /docs/markdown/snippets
parent3196e4e141029aae0b800e7c39f6b3ed31d1cc02 (diff)
downloadmeson-2259db2683d9e60c727ce847d1da7a759b190006.zip
meson-2259db2683d9e60c727ce847d1da7a759b190006.tar.gz
meson-2259db2683d9e60c727ce847d1da7a759b190006.tar.bz2
Add documentation.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/linkcustom.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/markdown/snippets/linkcustom.md b/docs/markdown/snippets/linkcustom.md
new file mode 100644
index 0000000..d6ee801
--- /dev/null
+++ b/docs/markdown/snippets/linkcustom.md
@@ -0,0 +1,16 @@
+## Can link against custom targets
+
+The output of `custom_target` 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.
+
+ - The custom target can only have one output file.
+
+ - The output file must have the correct file name extension.
+