2016-09-23 14:28:50 +08:00
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "package_spec.h"
|
|
|
|
#include "StatusParagraphs.h"
|
|
|
|
#include "vcpkg_paths.h"
|
|
|
|
|
|
|
|
namespace vcpkg {namespace Dependencies
|
|
|
|
{
|
2016-11-16 03:56:46 +08:00
|
|
|
enum class install_plan_type
|
2016-11-16 03:56:46 +08:00
|
|
|
{
|
|
|
|
BUILD_AND_INSTALL,
|
|
|
|
INSTALL,
|
|
|
|
ALREADY_INSTALLED
|
|
|
|
};
|
2016-09-23 14:28:50 +08:00
|
|
|
|
2016-11-16 03:56:46 +08:00
|
|
|
struct install_plan_action
|
|
|
|
{
|
2016-11-16 03:56:46 +08:00
|
|
|
install_plan_type type;
|
2016-11-16 03:56:46 +08:00
|
|
|
std::unique_ptr<BinaryParagraph> bpgh;
|
|
|
|
std::unique_ptr<SourceParagraph> spgh;
|
|
|
|
};
|
2016-11-08 08:38:49 +08:00
|
|
|
|
2016-11-16 03:56:46 +08:00
|
|
|
struct package_spec_with_install_plan
|
|
|
|
{
|
|
|
|
package_spec spec;
|
2016-11-16 03:56:46 +08:00
|
|
|
install_plan_action plan;
|
2016-11-16 03:56:46 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<package_spec_with_install_plan> create_install_plan(const vcpkg_paths& paths, const std::vector<package_spec>& specs, const StatusParagraphs& status_db);
|
2016-09-23 14:28:50 +08:00
|
|
|
}}
|