diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-04-09 08:46:01 -0400 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-04-09 09:29:12 -0700 |
commit | 5440ce003b5ffad9220496df910a52fb9d798a91 (patch) | |
tree | f61c94809ffafa9cbab0a1d9ccf258c28d1c0ae6 /docs/markdown/snippets | |
parent | f328632fa500aaa085b63712414bdd1b890aaf0b (diff) | |
download | meson-5440ce003b5ffad9220496df910a52fb9d798a91.zip meson-5440ce003b5ffad9220496df910a52fb9d798a91.tar.gz meson-5440ce003b5ffad9220496df910a52fb9d798a91.tar.bz2 |
Add global_source/build_root()
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/global_root.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/snippets/global_root.md b/docs/markdown/snippets/global_root.md new file mode 100644 index 0000000..8590f82 --- /dev/null +++ b/docs/markdown/snippets/global_root.md @@ -0,0 +1,10 @@ +## New `meson.global_build_root()` and `meson.global_source_root()` methods + +Returns the root source and build directory of the main project. + +Those are direct replacement for `meson.build_root()` and `meson.source_root()` +that have been deprecated since 0.56.0. In some rare occasions they could not be +replaced by `meson.project_source_root()` or `meson.current_source_dir()`, in +which case the new methods can now be used instead. Old methods are still +deprecated because their names are not explicit enough and created many issues +when a project is being used as a subproject. |