aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2018-04-16 21:29:21 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2018-04-18 14:54:52 -0400
commit9a82b0136a6b9cd9d2000342a0506b7c8bf4897d (patch)
treecea978decfa60fa96cd45a5a9f6dcc3294452503 /docs/markdown/snippets
parent60aaee55d47e5938662a48d85ba659d8f79c7187 (diff)
downloadmeson-9a82b0136a6b9cd9d2000342a0506b7c8bf4897d.zip
meson-9a82b0136a6b9cd9d2000342a0506b7c8bf4897d.tar.gz
meson-9a82b0136a6b9cd9d2000342a0506b7c8bf4897d.tar.bz2
extract_all_objects: Add 'recursive' keyword argument
To maintain backward compatibility we cannot add recursive objects by default. Print a warning when there are recursive objects to be pulled and the argument is not set. After a while we'll do pull recursive objects by default.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/extract-all-objects.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/markdown/snippets/extract-all-objects.md b/docs/markdown/snippets/extract-all-objects.md
new file mode 100644
index 0000000..3cf8040
--- /dev/null
+++ b/docs/markdown/snippets/extract-all-objects.md
@@ -0,0 +1,12 @@
+## Recursively extract objects
+
+`recursive` keyword argument has been added to `extract_all_objects`. When set
+to `true` it will also return objects passed to the `objects` argument of this
+target. By default only objects built for this target are returned to maintain
+backward compatibility with previous versions. The default will eventually be
+changed to `true` in a future version.
+
+```meson
+lib1 = static_library('a', 'source.c', objects : 'prebuilt.o')
+lib2 = static_library('b', objects : lib1.extract_all_objects(recursive : true))
+```