aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-24 18:46:13 +0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-08-04 21:44:52 +0300
commit8ba14057421928b15a485214ac7023d246bfab7c (patch)
tree108c5faf51aa12b29c9a285e60e7a8ff13d57d3d /docs/markdown
parent940ebd658b9e7bf1679bd8fbfbcb6b429d80424a (diff)
downloadmeson-8ba14057421928b15a485214ac7023d246bfab7c.zip
meson-8ba14057421928b15a485214ac7023d246bfab7c.tar.gz
meson-8ba14057421928b15a485214ac7023d246bfab7c.tar.bz2
sourceset: add all_dependencies() method
'if_true' sources should be built with their dependencies, as illustrated by test case change. Ideally, I think we would want only the files with the dependencies to be built with the flags, but that would probably change the way sourceset are used.
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/SourceSet-module.md11
-rw-r--r--docs/markdown/snippets/source_set_enhancements.md4
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/SourceSet-module.md b/docs/markdown/SourceSet-module.md
index fee643a..4b34ff7 100644
--- a/docs/markdown/SourceSet-module.md
+++ b/docs/markdown/SourceSet-module.md
@@ -149,6 +149,17 @@ sources are included (if any).
**Returns**: a list of file objects
+#### `all_dependencies()` *(since 0.52.0)*
+
+``` meson
+list source_set.all_dependencies(...)
+```
+
+Returns a list of all dependencies that were placed in the source set
+using `add` (including nested source sets) and that were found.
+
+**Returns**: a list of dependencies
+
#### `apply()`
``` meson
diff --git a/docs/markdown/snippets/source_set_enhancements.md b/docs/markdown/snippets/source_set_enhancements.md
new file mode 100644
index 0000000..08e0ae3
--- /dev/null
+++ b/docs/markdown/snippets/source_set_enhancements.md
@@ -0,0 +1,4 @@
+## Enhancements to the source_set module
+
+`SourceSet` objects now provide the `all_dependencies()` method, that
+complement the existing `all_sources()` method.