diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-03 18:10:29 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-02-10 14:00:11 -0800 |
| commit | a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7 (patch) | |
| tree | 35cda0b755f5d3c7304b44663c6e1732a0df7664 /toolsrc/include | |
| parent | 95650bdd424b9499f4676dae8f110b15b3fd024f (diff) | |
| download | vcpkg-a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7.tar.gz vcpkg-a13b2f0c92d1cd5322ed0cb839a4bba5b1ab6aa7.zip | |
build_package() modified to return the result of the build
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/PostBuildLint.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg_Commands.h | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/toolsrc/include/PostBuildLint.h b/toolsrc/include/PostBuildLint.h index 215a237aa..73c8ec54b 100644 --- a/toolsrc/include/PostBuildLint.h +++ b/toolsrc/include/PostBuildLint.h @@ -4,5 +4,5 @@ namespace vcpkg::PostBuildLint { - void perform_all_checks(const package_spec& spec, const vcpkg_paths& paths); + size_t perform_all_checks(const package_spec& spec, const vcpkg_paths& paths); } diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h index 8d772b255..ef300ac12 100644 --- a/toolsrc/include/vcpkg_Commands.h +++ b/toolsrc/include/vcpkg_Commands.h @@ -11,7 +11,16 @@ namespace vcpkg::Commands namespace Build { - void build_package(const SourceParagraph& source_paragraph, const package_spec& spec, const vcpkg_paths& paths, const fs::path& port_dir); + enum class BuildResult + { + BUILD_NOT_STARTED = 0, + SUCCESS, + CASCADED_DUE_TO_MISSING_DEPENDENCIES, + BUILD_FAILED, + POST_BUILD_CHECKS_FAILED, + }; + + BuildResult build_package(const SourceParagraph& source_paragraph, const package_spec& spec, const vcpkg_paths& paths, const fs::path& port_dir); void perform_and_exit(const vcpkg_cmd_arguments& args, const vcpkg_paths& paths, const triplet& default_target_triplet); } |
