mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 07:19:08 +08:00
Introduce PostBuildLint namespace
This commit is contained in:
parent
af120041b6
commit
74f69ade18
@ -6,7 +6,7 @@
|
||||
|
||||
namespace fs = std::tr2::sys;
|
||||
|
||||
namespace vcpkg
|
||||
namespace vcpkg { namespace PostBuildLint
|
||||
{
|
||||
enum class LinkageType
|
||||
{
|
||||
@ -128,4 +128,4 @@ namespace vcpkg
|
||||
};
|
||||
|
||||
BuildInfo read_build_info(const fs::path& filepath);
|
||||
}
|
||||
}}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "package_spec.h"
|
||||
#include "vcpkg_paths.h"
|
||||
|
||||
namespace vcpkg
|
||||
namespace vcpkg {namespace PostBuildLint
|
||||
{
|
||||
void perform_all_checks(const package_spec& spec, const vcpkg_paths& paths);
|
||||
}
|
||||
}}
|
||||
|
@ -2,7 +2,7 @@
|
||||
#include "vcpkg_Checks.h"
|
||||
#include "vcpkglib_helpers.h"
|
||||
|
||||
namespace vcpkg
|
||||
namespace vcpkg { namespace PostBuildLint
|
||||
{
|
||||
const ConfigurationType& BuildType::config() const
|
||||
{
|
||||
@ -161,4 +161,4 @@ namespace vcpkg
|
||||
{
|
||||
return this->m_dll_name;
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
@ -59,7 +59,7 @@ namespace vcpkg
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
perform_all_checks(spec, paths);
|
||||
PostBuildLint::perform_all_checks(spec, paths);
|
||||
|
||||
create_binary_control_file(paths, source_paragraph, target_triplet);
|
||||
|
||||
@ -140,7 +140,7 @@ namespace vcpkg
|
||||
const std::unordered_set<std::string> options = args.check_and_get_optional_command_arguments({OPTION_CHECKS_ONLY});
|
||||
if (options.find(OPTION_CHECKS_ONLY) != options.end())
|
||||
{
|
||||
perform_all_checks(spec, paths);
|
||||
PostBuildLint::perform_all_checks(spec, paths);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
namespace fs = std::tr2::sys;
|
||||
|
||||
namespace vcpkg
|
||||
namespace vcpkg { namespace PostBuildLint
|
||||
{
|
||||
enum class lint_status
|
||||
{
|
||||
@ -668,8 +668,8 @@ namespace vcpkg
|
||||
Checks::unreachable();
|
||||
}
|
||||
#if 0
|
||||
error_count += check_no_subdirectories(package_dir / "lib");
|
||||
error_count += check_no_subdirectories(package_dir / "debug" / "lib");
|
||||
error_count += check_no_subdirectories(package_dir / "lib");
|
||||
error_count += check_no_subdirectories(package_dir / "debug" / "lib");
|
||||
#endif
|
||||
|
||||
error_count += check_no_empty_folders(package_dir);
|
||||
@ -684,4 +684,4 @@ namespace vcpkg
|
||||
|
||||
System::println("-- Performing post-build validation done");
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user