#pragma once #include #include #include #include #include #include namespace vcpkg { namespace Tools { static const std::string SEVEN_ZIP = "7zip"; static const std::string CMAKE = "cmake"; static const std::string GIT = "git"; static const std::string NINJA = "ninja"; static const std::string NUGET = "nuget"; static const std::string IFW_INSTALLER_BASE = "ifw_installerbase"; static const std::string IFW_BINARYCREATOR = "ifw_binarycreator"; static const std::string IFW_REPOGEN = "ifw_repogen"; } struct ToolsetArchOption { CStringView name; System::CPUArchitecture host_arch; System::CPUArchitecture target_arch; }; struct Toolset { fs::path visual_studio_root_path; fs::path dumpbin; fs::path vcvarsall; std::vector vcvarsall_options; CStringView version; std::vector supported_architectures; }; namespace Build { struct PreBuildInfo; } struct VcpkgPaths { static Expected create(const fs::path& vcpkg_root_dir, const std::string& default_vs_path); fs::path package_dir(const PackageSpec& spec) const; fs::path port_dir(const PackageSpec& spec) const; fs::path port_dir(const std::string& name) const; fs::path build_info_file_path(const PackageSpec& spec) const; fs::path listfile_path(const BinaryParagraph& pgh) const; const std::vector& get_available_triplets() 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 tools; 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_tool_exe(const std::string& tool) const; /// Retrieve a toolset matching a VS version /// /// Valid version strings are "v120", "v140", "v141", and "". Empty string gets the latest. /// const Toolset& get_toolset(const Build::PreBuildInfo& prebuildinfo) const; Files::Filesystem& get_filesystem() const; private: Lazy> available_triplets; Cache tool_paths; Lazy> toolsets; Lazy> toolsets_vs2013; fs::path default_vs_path; }; }