aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/global_root.md
blob: 8590f824a71e8029e95175a7f350f79224d6f7ce (plain)
1
2
3
4
5
6
7
8
9
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.