aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-11-16 17:42:15 -0800
committerRobert Schumacher <roschuma@microsoft.com>2017-11-16 17:42:15 -0800
commit34b4db1fb45df541b8a2c7592a57ac6a8fd0b900 (patch)
tree46a1ba5a4646e7bc44182e6277677a2f8bae6df3 /toolsrc/include
parentde7382ce8945fae70d947590262c2e0b9ce4a6bf (diff)
downloadvcpkg-34b4db1fb45df541b8a2c7592a57ac6a8fd0b900.tar.gz
vcpkg-34b4db1fb45df541b8a2c7592a57ac6a8fd0b900.zip
[vcpkg] Output autodetected CMake usage information after install.
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/build.h6
-rw-r--r--toolsrc/include/vcpkg/install.h14
2 files changed, 15 insertions, 5 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h
index 824f3ccaf..cbd34c730 100644
--- a/toolsrc/include/vcpkg/build.h
+++ b/toolsrc/include/vcpkg/build.h
@@ -69,6 +69,12 @@ namespace vcpkg::Build
EXCLUDED,
};
+ struct BuildResults
+ {
+ BuildResult result_code;
+ std::unique_ptr<BinaryControlFile> binary_control_file;
+ };
+
static constexpr std::array<BuildResult, 6> BUILD_RESULT_VALUES = {
BuildResult::SUCCEEDED,
BuildResult::BUILD_FAILED,
diff --git a/toolsrc/include/vcpkg/install.h b/toolsrc/include/vcpkg/install.h
index df7542318..e436e2238 100644
--- a/toolsrc/include/vcpkg/install.h
+++ b/toolsrc/include/vcpkg/install.h
@@ -30,11 +30,15 @@ namespace vcpkg::Install
struct SpecSummary
{
- explicit SpecSummary(const PackageSpec& spec);
+ SpecSummary(const PackageSpec& spec, const Dependencies::AnyAction* action);
+
+ const BinaryParagraph* get_binary_paragraph() const;
PackageSpec spec;
- Build::BuildResult result;
+ Build::BuildResults build_result;
std::string timing;
+
+ const Dependencies::AnyAction* action;
};
struct InstallSummary
@@ -62,9 +66,9 @@ namespace vcpkg::Install
const fs::path& listfile() const;
};
- Build::BuildResult perform_install_plan_action(const VcpkgPaths& paths,
- const Dependencies::InstallPlanAction& action,
- StatusParagraphs& status_db);
+ Build::BuildResults perform_install_plan_action(const VcpkgPaths& paths,
+ const Dependencies::InstallPlanAction& action,
+ StatusParagraphs& status_db);
enum class InstallResult
{