aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorras0219 <robertallenschumacher@gmail.com>2020-06-26 11:26:38 -0700
committerGitHub <noreply@github.com>2020-06-26 11:26:38 -0700
commit4c527e49c44a708ba70026ad4b05601c72558009 (patch)
tree9a42087577b0033937fb57b9db3462fdf66c5b9d /toolsrc/include
parent9f8cc9ee88684b9dc94906ef57046bbf5e09c1d4 (diff)
downloadvcpkg-4c527e49c44a708ba70026ad4b05601c72558009.tar.gz
vcpkg-4c527e49c44a708ba70026ad4b05601c72558009.zip
[vcpkg] Use XDG/LOCALAPPDATA for default binary caching path (#12091)
* [vcpkg] Use XDG Base Directory Specification on non-Windows * [vcpkg] Move user-wide binary cache on Windows to $LOCALAPPDATA/vcpkg/archives * [vcpkg] Address code review comments; refactor other uses of LOCALAPPDATA * [vcpkg] Address code review comments * [vcpkg] filesystem::path::append() accepts string arguments, not paths. Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/system.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/system.h b/toolsrc/include/vcpkg/base/system.h
index f119dbdc4..0a2e745c4 100644
--- a/toolsrc/include/vcpkg/base/system.h
+++ b/toolsrc/include/vcpkg/base/system.h
@@ -9,7 +9,13 @@ namespace vcpkg::System
{
Optional<std::string> get_environment_variable(ZStringView varname) noexcept;
- ExpectedS<std::string> get_home_dir() noexcept;
+ const ExpectedS<fs::path>& get_home_dir() noexcept;
+
+ const ExpectedS<fs::path>& get_platform_cache_home() noexcept;
+
+#ifdef _WIN32
+ const ExpectedS<fs::path>& get_appdata_local() noexcept;
+#endif
Optional<std::string> get_registry_string(void* base_hkey, StringView subkey, StringView valuename);