From 8ba14057421928b15a485214ac7023d246bfab7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 24 Jul 2019 18:46:13 +0400 Subject: 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. --- docs/markdown/SourceSet-module.md | 11 +++++++++++ docs/markdown/snippets/source_set_enhancements.md | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 docs/markdown/snippets/source_set_enhancements.md (limited to 'docs/markdown') 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. -- cgit v1.1