aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/vcpkg_Commands.h
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-04-30 04:09:05 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-05-01 17:24:54 -0700
commit20657a29ca8cc2aec104caca7703fcd72bf5746e (patch)
tree800fc0675cf6e184303921c8adea8ea8fc297e56 /toolsrc/include/vcpkg_Commands.h
parenta0d5b944953f14cb58121e76f7fe6140e8134ca3 (diff)
downloadvcpkg-20657a29ca8cc2aec104caca7703fcd72bf5746e.tar.gz
vcpkg-20657a29ca8cc2aec104caca7703fcd72bf5746e.zip
[vcpkg] Split vcpkg::Commands::Build -> vcpkg::Build, vcpkg::Commands::BuildCommand
Diffstat (limited to 'toolsrc/include/vcpkg_Commands.h')
-rw-r--r--toolsrc/include/vcpkg_Commands.h35
1 files changed, 1 insertions, 34 deletions
diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h
index 6099918ce..14d468352 100644
--- a/toolsrc/include/vcpkg_Commands.h
+++ b/toolsrc/include/vcpkg_Commands.h
@@ -14,41 +14,8 @@ namespace vcpkg::Commands
using CommandTypeB = void (*)(const VcpkgCmdArguments& args, const VcpkgPaths& paths);
using CommandTypeC = void (*)(const VcpkgCmdArguments& args);
- namespace Build
+ namespace BuildCommand
{
- enum class BuildResult
- {
- NULLVALUE = 0,
- SUCCEEDED,
- BUILD_FAILED,
- POST_BUILD_CHECKS_FAILED,
- CASCADED_DUE_TO_MISSING_DEPENDENCIES
- };
-
- static constexpr std::array<BuildResult, 4> BuildResult_values = {
- BuildResult::SUCCEEDED,
- BuildResult::BUILD_FAILED,
- BuildResult::POST_BUILD_CHECKS_FAILED,
- BuildResult::CASCADED_DUE_TO_MISSING_DEPENDENCIES};
-
- const std::string& to_string(const BuildResult build_result);
- std::string create_error_message(const BuildResult build_result, const PackageSpec& spec);
- std::string create_user_troubleshooting_message(const PackageSpec& spec);
-
- std::wstring make_build_env_cmd(const Triplet& triplet, const Toolset& toolset);
-
- struct ExtendedBuildResult
- {
- BuildResult code;
- std::vector<PackageSpec> unmet_dependencies;
- };
-
- ExtendedBuildResult build_package(const SourceParagraph& source_paragraph,
- const PackageSpec& spec,
- const VcpkgPaths& paths,
- const fs::path& port_dir,
- const StatusParagraphs& status_db);
-
void perform_and_exit(const PackageSpec& spec,
const fs::path& port_dir,
const std::unordered_set<std::string>& options,