diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-23 14:25:17 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-23 14:25:17 -0700 |
| commit | f4196f1638ad41cd640f4a57cefbcdb422724133 (patch) | |
| tree | 919afd25e7fc49255701cb7889b5a051306ecfce /toolsrc/include/vcpkg_paths.h | |
| parent | 8a8180503d8217959d96a9f2b9fc6366d67c1354 (diff) | |
| download | vcpkg-f4196f1638ad41cd640f4a57cefbcdb422724133.tar.gz vcpkg-f4196f1638ad41cd640f4a57cefbcdb422724133.zip | |
[vcpkg] Move find_available_package, find_available_port_file into vcpkg_paths.
`vcpkg_paths` is responsible for binding the concrete filesystem representation to the abstract `package_spec`.
Diffstat (limited to 'toolsrc/include/vcpkg_paths.h')
| -rw-r--r-- | toolsrc/include/vcpkg_paths.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg_paths.h b/toolsrc/include/vcpkg_paths.h index 58ab45bc5..b0064c60d 100644 --- a/toolsrc/include/vcpkg_paths.h +++ b/toolsrc/include/vcpkg_paths.h @@ -1,13 +1,19 @@ #pragma once #include <filesystem> #include "expected.h" +#include "package_spec.h" namespace vcpkg { + namespace fs = std::tr2::sys; + struct vcpkg_paths { static expected<vcpkg_paths> create(const std::tr2::sys::path& vcpkg_root_dir); + fs::path find_available_package(const package_spec& spec) const; + fs::path find_available_port_file(const package_spec& spec) const; + std::tr2::sys::path root; std::tr2::sys::path packages; std::tr2::sys::path buildtrees; |
