summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/gen_objects.md6
-rw-r--r--docs/yaml/functions/_build_target_base.yaml7
2 files changed, 11 insertions, 2 deletions
diff --git a/docs/markdown/snippets/gen_objects.md b/docs/markdown/snippets/gen_objects.md
new file mode 100644
index 000000000..fecd70155
--- /dev/null
+++ b/docs/markdown/snippets/gen_objects.md
@@ -0,0 +1,6 @@
+## Generated objects can be passed in the `objects:` keyword argument
+
+In previous versions of Meson, generated objects could only be
+passed as sources of a build target. This was confusing, therefore
+generated objects can now be passed in the `objects:` keyword
+argument as well.
diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml
index 46eedc1a9..767c4da6a 100644
--- a/docs/yaml/functions/_build_target_base.yaml
+++ b/docs/yaml/functions/_build_target_base.yaml
@@ -194,8 +194,11 @@ kwargs:
type: list[extracted_obj | file | str]
description: |
List of object files that should be linked in this target.
- These can include third party products you don't have source to,
- or object files produced by other build targets.
+
+ **Since 1.1.0** this can include generated files in addition to
+ object files that you don't have source to or that object files
+ produced by other build targets. In earlier release, generated
+ object files had to be placed in `sources`.
name_prefix:
type: str | list[void]