diff options
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Wrap-dependency-system-manual.md | 6 | ||||
-rw-r--r-- | docs/markdown/snippets/meson_home.md | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/Wrap-dependency-system-manual.md b/docs/markdown/Wrap-dependency-system-manual.md index c8b91d5..3aeea14 100644 --- a/docs/markdown/Wrap-dependency-system-manual.md +++ b/docs/markdown/Wrap-dependency-system-manual.md @@ -109,6 +109,12 @@ project's `subprojects/packagecache` directory, it will be used instead of downloading the file, even if `--wrap-mode` option is set to `nodownload`. The file's hash will be checked. +Since *1.3.0* if the `MESON_PACKAGE_CACHE_DIR` environment variable is set, it is used instead of +the project's `subprojects/packagecache`. This allows sharing the cache across multiple +projects. In addition it can contain an already extracted source tree as long as it +has the same directory name as the `directory` field in the wrap file. In that +case, the directory will be copied into `subprojects/` before applying patches. + ### Specific to VCS-based wraps - `url` - name of the wrap-git repository to clone. Required. - `revision` - name of the revision to checkout. Must be either: a diff --git a/docs/markdown/snippets/meson_home.md b/docs/markdown/snippets/meson_home.md new file mode 100644 index 0000000..2d656fc --- /dev/null +++ b/docs/markdown/snippets/meson_home.md @@ -0,0 +1,7 @@ +## New environment variable `MESON_PACKAGE_CACHE_DIR` + +If the `MESON_PACKAGE_CACHE_DIR` environment variable is set, it is used instead of the +project's `subprojects/packagecache`. This allows sharing the cache across multiple +projects. In addition it can contain an already extracted source tree as long as it +has the same directory name as the `directory` field in the wrap file. In that +case, the directory will be copied into `subprojects/` before applying patches. |