aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-12-19 12:38:55 +0100
committerDylan Baker <dylan@pnwbakers.com>2023-01-04 09:44:32 -0800
commit2c8c0f95862f2cf8cdb0c4739d2aead7186b9dd8 (patch)
treef214921b2f91049abb25d28eb483745f987c6e47 /docs/yaml
parent863f2a6d740448da71cc08d91e7e1af1b42cc9e1 (diff)
downloadmeson-2c8c0f95862f2cf8cdb0c4739d2aead7186b9dd8.zip
meson-2c8c0f95862f2cf8cdb0c4739d2aead7186b9dd8.tar.gz
meson-2c8c0f95862f2cf8cdb0c4739d2aead7186b9dd8.tar.bz2
document declare_dependency(object: ...)
Diffstat (limited to 'docs/yaml')
-rw-r--r--docs/yaml/functions/declare_dependency.yaml7
-rw-r--r--docs/yaml/objects/build_tgt.yaml4
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/yaml/functions/declare_dependency.yaml b/docs/yaml/functions/declare_dependency.yaml
index 7524447..b09a0c0 100644
--- a/docs/yaml/functions/declare_dependency.yaml
+++ b/docs/yaml/functions/declare_dependency.yaml
@@ -71,3 +71,10 @@ kwargs:
description: |
the directories to add to the string search path (i.e. `-J` switch for DMD).
Must be [[@inc]] objects or plain strings.
+
+ objects:
+ type: list[extracted_obj]
+ since: 1.1.0
+ description: |
+ a list of object files, to be linked directly into the targets that use the
+ dependency.
diff --git a/docs/yaml/objects/build_tgt.yaml b/docs/yaml/objects/build_tgt.yaml
index 2dec753..6ca43f3 100644
--- a/docs/yaml/objects/build_tgt.yaml
+++ b/docs/yaml/objects/build_tgt.yaml
@@ -13,8 +13,8 @@ methods:
source files. This is typically used to take single object files and link
them to unit tests or to compile some source files with custom flags. To
use the object file(s) in another build target, use the
- `objects:` keyword argument to a [[build_target]] or include them in the command
- line of a [[custom_target]].
+ `objects:` keyword argument to a [[build_target]] or [[declare_dependency]],
+ or include them in the command line of a [[custom_target]].
varargs:
name: source
type: str | file