cemu-vcpkg/toolsrc/include/vcpkg_Dependencies.h
Alexander Karatarakis 884cd176b0 Renames and formatting
2017-01-30 21:52:43 -08:00

52 lines
1.2 KiB
C++

#pragma once
#include <vector>
#include "package_spec.h"
#include "StatusParagraphs.h"
#include "vcpkg_paths.h"
namespace vcpkg::Dependencies
{
enum class install_plan_type
{
BUILD_AND_INSTALL,
INSTALL,
ALREADY_INSTALLED
};
struct install_plan_action
{
install_plan_type type;
std::unique_ptr<BinaryParagraph> binary_pgh;
std::unique_ptr<SourceParagraph> source_pgh;
};
struct package_spec_with_install_plan
{
package_spec spec;
install_plan_action plan;
};
enum class remove_plan_type
{
NOT_INSTALLED,
REMOVE_AUTO_SELECTED,
REMOVE_USER_REQUESTED
};
struct remove_plan_action
{
remove_plan_type type;
std::unique_ptr<StatusParagraph> status_pgh;
};
struct package_spec_with_remove_plan
{
package_spec spec;
remove_plan_action plan;
};
std::vector<package_spec_with_install_plan> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
std::vector<package_spec_with_remove_plan> create_remove_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
}