Skip to content

Commit 0b9baf5

Browse files
LaserEyesseli-schwartz
authored andcommitted
docs: clarify use cases for declare_dependency()
1 parent cef9c33 commit 0b9baf5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/yaml/functions/declare_dependency.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ returns: dep
33
description: |
44
This function returns a [[@dep]] object that
55
behaves like the return value of [[dependency]] but is
6-
internal to the current build. The main use case for this is in
6+
internal to the current build. One use case for this is in
77
subprojects. This allows a subproject to easily specify how it should
88
be used. This makes it interchangeable with the same dependency that
9-
is provided externally by the system.
9+
is provided externally by the system. Another common use case is to
10+
declare project targets as dependencies so they may be used as
11+
dependencies of other build targets.
1012
1113
kwargs:
1214
compile_args:
@@ -49,7 +51,7 @@ kwargs:
4951
description: |
5052
extra files to add to targets.
5153
mostly used for IDE integration.
52-
54+
5355
version:
5456
type: str
5557
description: |

0 commit comments

Comments
 (0)