aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/PostBuildLint.cpp
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/src/PostBuildLint.cpp
parenta0d5b944953f14cb58121e76f7fe6140e8134ca3 (diff)
downloadvcpkg-20657a29ca8cc2aec104caca7703fcd72bf5746e.tar.gz
vcpkg-20657a29ca8cc2aec104caca7703fcd72bf5746e.zip
[vcpkg] Split vcpkg::Commands::Build -> vcpkg::Build, vcpkg::Commands::BuildCommand
Diffstat (limited to 'toolsrc/src/PostBuildLint.cpp')
-rw-r--r--toolsrc/src/PostBuildLint.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/toolsrc/src/PostBuildLint.cpp b/toolsrc/src/PostBuildLint.cpp
index 7df74cf31..295a8a3b4 100644
--- a/toolsrc/src/PostBuildLint.cpp
+++ b/toolsrc/src/PostBuildLint.cpp
@@ -2,14 +2,16 @@
#include "PackageSpec.h"
#include "PostBuildLint.h"
-#include "PostBuildLint_BuildInfo.h"
#include "PostBuildLint_BuildType.h"
#include "VcpkgPaths.h"
#include "coff_file_reader.h"
+#include "vcpkg_Build.h"
#include "vcpkg_Files.h"
#include "vcpkg_System.h"
#include "vcpkg_Util.h"
+using vcpkg::Build::BuildInfo;
+
namespace vcpkg::PostBuildLint
{
static auto has_extension_pred(const Files::Filesystem& fs, const std::string& ext)
@@ -715,14 +717,14 @@ namespace vcpkg::PostBuildLint
static void operator+=(size_t& left, const LintStatus& right) { left += static_cast<size_t>(right); }
- static size_t perform_all_checks_and_return_error_count(const PackageSpec& spec, const VcpkgPaths& paths)
+ static size_t perform_all_checks_and_return_error_count(const PackageSpec& spec,
+ const VcpkgPaths& paths,
+ const BuildInfo& build_info)
{
const auto& fs = paths.get_filesystem();
// for dumpbin
const Toolset& toolset = paths.get_toolset();
-
- BuildInfo build_info = read_build_info(fs, paths.build_info_file_path(spec));
const fs::path package_dir = paths.package_dir(spec);
size_t error_count = 0;
@@ -823,10 +825,10 @@ namespace vcpkg::PostBuildLint
return error_count;
}
- size_t perform_all_checks(const PackageSpec& spec, const VcpkgPaths& paths)
+ size_t perform_all_checks(const PackageSpec& spec, const VcpkgPaths& paths, const BuildInfo& build_info)
{
System::println("-- Performing post-build validation");
- const size_t error_count = perform_all_checks_and_return_error_count(spec, paths);
+ const size_t error_count = perform_all_checks_and_return_error_count(spec, paths, build_info);
if (error_count != 0)
{