vcpkg/toolsrc/include/vcpkg_paths.h

37 lines
864 B
C
Raw Normal View History

2016-09-19 11:50:08 +08:00
#pragma once
#include <filesystem>
#include "expected.h"
#include "package_spec.h"
2016-09-19 11:50:08 +08:00
namespace vcpkg
{
namespace fs = std::tr2::sys;
2016-09-19 11:50:08 +08:00
struct vcpkg_paths
{
static expected<vcpkg_paths> create(const fs::path& vcpkg_root_dir);
2016-09-19 11:50:08 +08:00
fs::path package_dir(const package_spec& spec) const;
fs::path port_dir(const package_spec& spec) 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;
2016-09-19 11:50:08 +08:00
fs::path buildsystems;
fs::path buildsystems_msbuild_targets;
2016-09-19 11:50:08 +08:00
fs::path vcpkg_dir;
fs::path vcpkg_dir_status_file;
fs::path vcpkg_dir_info;
fs::path vcpkg_dir_updates;
2016-09-19 11:50:08 +08:00
fs::path ports_cmake;
2016-09-19 11:50:08 +08:00
};
}