aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-19 17:44:26 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-21 18:06:39 -0700
commit96955c08e763bea33399090881cf75578f172f34 (patch)
treec86e634498a0f64b005901a2c7d4e3eab3d0069f
parent736b9db03bd6a4636c88a40bf8fe076c173c6b98 (diff)
downloadvcpkg-96955c08e763bea33399090881cf75578f172f34.tar.gz
vcpkg-96955c08e763bea33399090881cf75578f172f34.zip
InstallationDirs -> InstallDir
-rw-r--r--toolsrc/include/vcpkg_Commands.h12
-rw-r--r--toolsrc/src/commands_install.cpp16
2 files changed, 14 insertions, 14 deletions
diff --git a/toolsrc/include/vcpkg_Commands.h b/toolsrc/include/vcpkg_Commands.h
index 629b0804d..f137747ee 100644
--- a/toolsrc/include/vcpkg_Commands.h
+++ b/toolsrc/include/vcpkg_Commands.h
@@ -43,12 +43,12 @@ namespace vcpkg::Commands
namespace Install
{
- struct InstallationDirs
+ struct InstallDir
{
- static InstallationDirs from_destination_root(const fs::path& source_dir,
- const fs::path& destination_root,
- const std::string& destination_subdirectory,
- const fs::path& listfile);
+ static InstallDir from_destination_root(const fs::path& source_dir,
+ const fs::path& destination_root,
+ const std::string& destination_subdirectory,
+ const fs::path& listfile);
private:
fs::path m_source_dir; // "source" from source-destination, not source code.
@@ -63,7 +63,7 @@ namespace vcpkg::Commands
const fs::path& listfile() const;
};
- void install_files_and_write_listfile(Files::Filesystem& fs, const InstallationDirs& dirs);
+ void install_files_and_write_listfile(Files::Filesystem& fs, const InstallDir& dirs);
void install_package(const VcpkgPaths& paths, const BinaryParagraph& binary_paragraph, StatusParagraphs* status_db);
void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths, const Triplet& default_triplet);
}
diff --git a/toolsrc/src/commands_install.cpp b/toolsrc/src/commands_install.cpp
index d846e7366..821079ad8 100644
--- a/toolsrc/src/commands_install.cpp
+++ b/toolsrc/src/commands_install.cpp
@@ -15,12 +15,12 @@ namespace vcpkg::Commands::Install
using Dependencies::RequestType;
using Dependencies::InstallPlanType;
- InstallationDirs InstallationDirs::from_destination_root(const fs::path& source_dir,
+ InstallDir InstallDir::from_destination_root(const fs::path& source_dir,
const fs::path& destination_root,
const std::string& destination_subdirectory,
const fs::path& listfile)
{
- InstallationDirs dirs;
+ InstallDir dirs;
dirs.m_source_dir = source_dir;
dirs.m_destination = destination_root / destination_subdirectory;
dirs.m_destination_subdirectory = destination_subdirectory;
@@ -28,27 +28,27 @@ namespace vcpkg::Commands::Install
return dirs;
}
- const fs::path& InstallationDirs::source_dir() const
+ const fs::path& InstallDir::source_dir() const
{
return this->m_source_dir;
}
- const fs::path& InstallationDirs::destination() const
+ const fs::path& InstallDir::destination() const
{
return this->m_destination;
}
- const std::string& InstallationDirs::destination_subdirectory() const
+ const std::string& InstallDir::destination_subdirectory() const
{
return this->m_destination_subdirectory;
}
- const fs::path& InstallationDirs::listfile() const
+ const fs::path& InstallDir::listfile() const
{
return this->m_listfile;
}
- void install_files_and_write_listfile(Files::Filesystem& fs, const InstallationDirs& dirs)
+ void install_files_and_write_listfile(Files::Filesystem& fs, const InstallDir& dirs)
{
std::vector<std::string> output;
std::error_code ec;
@@ -256,7 +256,7 @@ namespace vcpkg::Commands::Install
write_update(paths, source_paragraph);
status_db->insert(std::make_unique<StatusParagraph>(source_paragraph));
- const InstallationDirs dirs = InstallationDirs::from_destination_root(package_dir,
+ const InstallDir dirs = InstallDir::from_destination_root(package_dir,
paths.installed,
triplet.to_string(),
paths.listfile_path(binary_paragraph));