aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml/functions
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-03-29 13:52:03 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-05-03 02:00:29 -0400
commit3a960023d3e78d04651850178db96c7d742725e6 (patch)
tree6701f36e22752547c9041844d9c70ba301f3e4a1 /docs/yaml/functions
parent06b76f7c9d7bbe74450ed49316eaeae28dccda7d (diff)
downloadmeson-3a960023d3e78d04651850178db96c7d742725e6.zip
meson-3a960023d3e78d04651850178db96c7d742725e6.tar.gz
meson-3a960023d3e78d04651850178db96c7d742725e6.tar.bz2
interpreter: new function add_project_dependencies()
This function can be used to add fundamental dependencies such as glib to all build products in one fell swoop. This can be useful whenever, due to a project's coding conventions, it is not really possible to compile any source file without including the dependency. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/yaml/functions')
-rw-r--r--docs/yaml/functions/add_project_dependencies.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/yaml/functions/add_project_dependencies.yaml b/docs/yaml/functions/add_project_dependencies.yaml
new file mode 100644
index 0000000..03420c5
--- /dev/null
+++ b/docs/yaml/functions/add_project_dependencies.yaml
@@ -0,0 +1,16 @@
+name: add_project_dependencies
+since: 0.63.0
+returns: void
+description: |
+ Adds arguments to the compiler and linker command line, so that the
+ given set of dependencies is included in all build products for this
+ project.
+
+
+varargs:
+ type: dep
+ name: dependencies
+ description: The dependencies to add; if internal dependencies are included,
+ they must not include any built object.
+
+kwargs_inherit: add_global_arguments