mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 03:17:16 +08:00
29 lines
901 B
C++
29 lines
901 B
C++
#pragma once
|
|
|
|
#include <filesystem>
|
|
#include "package_spec.h"
|
|
#include "BinaryParagraph.h"
|
|
#include "StatusParagraphs.h"
|
|
#include "vcpkg_paths.h"
|
|
|
|
namespace vcpkg
|
|
{
|
|
namespace fs = std::tr2::sys;
|
|
|
|
extern bool g_do_dry_run;
|
|
|
|
StatusParagraphs database_load_check(const vcpkg_paths& paths);
|
|
|
|
void install_package(const vcpkg_paths& paths, const BinaryParagraph& binary_paragraph, StatusParagraphs& status_db);
|
|
void deinstall_package(const vcpkg_paths& paths, const package_spec& spec, StatusParagraphs& status_db);
|
|
|
|
expected<SourceParagraph> try_load_port(const fs::path& control_path);
|
|
inline expected<SourceParagraph> try_load_port(const vcpkg_paths& paths, const std::string& name)
|
|
{
|
|
return try_load_port(paths.ports / name);
|
|
}
|
|
|
|
expected<BinaryParagraph> try_load_cached_package(const vcpkg_paths& paths, const package_spec& spec);
|
|
|
|
} // namespace vcpkg
|