diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-03-29 13:52:03 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-05-03 02:00:29 -0400 |
commit | 3a960023d3e78d04651850178db96c7d742725e6 (patch) | |
tree | 6701f36e22752547c9041844d9c70ba301f3e4a1 /docs/markdown/snippets | |
parent | 06b76f7c9d7bbe74450ed49316eaeae28dccda7d (diff) | |
download | meson-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/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/add_project_dependencies.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/markdown/snippets/add_project_dependencies.md b/docs/markdown/snippets/add_project_dependencies.md new file mode 100644 index 0000000..193ea55 --- /dev/null +++ b/docs/markdown/snippets/add_project_dependencies.md @@ -0,0 +1,11 @@ +## `add_project_dependencies()` function + +Dependencies can now be added to all build products using +`add_project_dependencies()`. This can be useful in several +cases: + +* with special dependencies such as `dependency('threads')` +* with system libraries such as `find_library('m')` +* with the `include_directories` keyword argument of +`declare_dependency()`, to add both source and build +directories to the include search path |