summaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorXavier Claessens <xclaessens@netflix.com>2025-10-11 15:23:49 -0400
committerXavier Claessens <xclaesse@gmail.com>2025-10-15 12:15:39 -0400
commit1826cba8d8f1316b83bb5864b9a61d756fe7f0ea (patch)
tree163093278f92446292b8136c40ad90c8fbd0d5a8 /docs/markdown
parente0fc33dce2511c60c070064ffd86c746676dd302 (diff)
downloadmeson-1826cba8d8f1316b83bb5864b9a61d756fe7f0ea.tar.gz
Add local_program() function
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/local_program.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/snippets/local_program.md b/docs/markdown/snippets/local_program.md
new file mode 100644
index 000000000..e671efb2c
--- /dev/null
+++ b/docs/markdown/snippets/local_program.md
@@ -0,0 +1,13 @@
+## New [[local_program]] function
+
+Similar to [[find_program]], but only work with a program that exists in
+source tree, or a built target. Meson will not look for the program in the
+system or in a subproject.
+
+In addition, `depends` keyword argument can be specified in case the program
+depends on built targets, for example a Python script could require a compiled
+C module. If any such dependency is present, the program can only be used in
+build-time commands (e.g. [[custom_target]]).
+
+The program can be passed to [[meson.override_find_program]] and used in
+subprojects.