2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
2016-11-29 18:08:53 -08:00
|
|
|
#include "filesystem_fs.h"
|
2016-09-18 20:50:08 -07:00
|
|
|
#include "expected.h"
|
2016-09-23 14:25:17 -07:00
|
|
|
#include "package_spec.h"
|
2016-11-07 17:54:23 -08:00
|
|
|
#include "BinaryParagraph.h"
|
2017-03-10 16:30:44 -08:00
|
|
|
#include "lazy.h"
|
2016-09-18 20:50:08 -07:00
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct vcpkg_paths
|
|
|
|
{
|
2016-09-30 16:34:55 -07:00
|
|
|
static expected<vcpkg_paths> create(const fs::path& vcpkg_root_dir);
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2016-09-23 14:32:56 -07:00
|
|
|
fs::path package_dir(const package_spec& spec) const;
|
|
|
|
fs::path port_dir(const package_spec& spec) const;
|
2016-11-08 14:12:49 -08:00
|
|
|
fs::path build_info_file_path(const package_spec& spec) const;
|
2016-11-07 17:54:23 -08:00
|
|
|
fs::path listfile_path(const BinaryParagraph& pgh) const;
|
2016-11-08 14:12:49 -08:00
|
|
|
|
2016-09-29 12:35:27 -07:00
|
|
|
bool is_valid_triplet(const triplet& t) const;
|
2016-09-23 14:25:17 -07:00
|
|
|
|
2016-09-30 16:34:55 -07:00
|
|
|
fs::path root;
|
|
|
|
fs::path packages;
|
|
|
|
fs::path buildtrees;
|
|
|
|
fs::path downloads;
|
|
|
|
fs::path ports;
|
|
|
|
fs::path installed;
|
|
|
|
fs::path triplets;
|
2017-01-23 15:12:43 -08:00
|
|
|
fs::path scripts;
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2016-09-30 16:34:55 -07:00
|
|
|
fs::path buildsystems;
|
|
|
|
fs::path buildsystems_msbuild_targets;
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2016-09-30 16:34:55 -07:00
|
|
|
fs::path vcpkg_dir;
|
|
|
|
fs::path vcpkg_dir_status_file;
|
|
|
|
fs::path vcpkg_dir_info;
|
|
|
|
fs::path vcpkg_dir_updates;
|
2016-09-18 20:50:08 -07:00
|
|
|
|
2016-09-30 16:34:55 -07:00
|
|
|
fs::path ports_cmake;
|
2017-03-10 16:30:44 -08:00
|
|
|
|
|
|
|
const fs::path& get_cmake_exe() const;
|
|
|
|
const fs::path& get_git_exe() const;
|
|
|
|
const fs::path& get_nuget_exe() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
lazy<fs::path> cmake_exe;
|
|
|
|
lazy<fs::path> git_exe;
|
|
|
|
lazy<fs::path> nuget_exe;
|
2016-09-18 20:50:08 -07:00
|
|
|
};
|
|
|
|
}
|