mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 10:21:49 +08:00
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
#pragma once
|
|
#include "filesystem_fs.h"
|
|
#include "expected.h"
|
|
#include "package_spec.h"
|
|
#include "BinaryParagraph.h"
|
|
#include "lazy.h"
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct vcpkg_paths
|
|
{
|
|
static expected<vcpkg_paths> create(const fs::path& vcpkg_root_dir);
|
|
|
|
fs::path package_dir(const package_spec& spec) const;
|
|
fs::path port_dir(const package_spec& spec) const;
|
|
fs::path build_info_file_path(const package_spec& spec) const;
|
|
fs::path listfile_path(const BinaryParagraph& pgh) const;
|
|
|
|
bool is_valid_triplet(const triplet& t) const;
|
|
|
|
fs::path root;
|
|
fs::path packages;
|
|
fs::path buildtrees;
|
|
fs::path downloads;
|
|
fs::path ports;
|
|
fs::path installed;
|
|
fs::path triplets;
|
|
fs::path scripts;
|
|
|
|
fs::path buildsystems;
|
|
fs::path buildsystems_msbuild_targets;
|
|
|
|
fs::path vcpkg_dir;
|
|
fs::path vcpkg_dir_status_file;
|
|
fs::path vcpkg_dir_info;
|
|
fs::path vcpkg_dir_updates;
|
|
|
|
fs::path ports_cmake;
|
|
|
|
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;
|
|
};
|
|
}
|