summaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorLaserEyess <LaserEyess@users.noreply.github.com>2025-01-21 18:11:11 -0500
committerEli Schwartz <eschwartz93@gmail.com>2025-01-21 18:36:02 -0500
commit0b9baf573bf2b1619d7822f67965a35391172625 (patch)
tree769ae7c83343b7c2ddedd386a7f555dc611e2b1f /docs/yaml
parentcef9c33bba566b576d3d5b04d88bb3ebadb7d1e8 (diff)
downloadmeson-0b9baf573bf2b1619d7822f67965a35391172625.tar.gz
docs: clarify use cases for declare_dependency()
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/functions/declare_dependency.yaml8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/yaml/functions/declare_dependency.yaml b/docs/yaml/functions/declare_dependency.yaml
index 9d085fdf8..848082d1b 100644
--- a/docs/yaml/functions/declare_dependency.yaml
+++ b/docs/yaml/functions/declare_dependency.yaml
@@ -3,10 +3,12 @@ returns: dep
description: |
This function returns a [[@dep]] object that
behaves like the return value of [[dependency]] but is
- internal to the current build. The main use case for this is in
+ internal to the current build. One use case for this is in
subprojects. This allows a subproject to easily specify how it should
be used. This makes it interchangeable with the same dependency that
- is provided externally by the system.
+ is provided externally by the system. Another common use case is to
+ declare project targets as dependencies so they may be used as
+ dependencies of other build targets.
kwargs:
compile_args:
@@ -49,7 +51,7 @@ kwargs:
description: |
extra files to add to targets.
mostly used for IDE integration.
-
+
version:
type: str
description: |